This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "BBEdit" | |
| set output to "" | |
| set docs to every project document | |
| repeat with current in docs | |
| repeat 1 times | |
| if file of current is missing value then | |
| exit repeat | |
| end if | |
| set asAlias to file of current as alias | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <!-- | |
| BBEdit codeless language module for email (for example, what comes out of Mutt when you use "bbedit -w" as its editor) | |
| Feel free to customize. | |
| By Ryan Wilcox | |
| Requires BBEdit 8.0 or higher. To install, copy here: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ############################################################################## | |
| # NOTE: this fab file requires at least Fabric 1.3.3 | |
| # ############################################################################## | |
| # ############################################################################## | |
| # ######## Do tricky things to sys.path so that we can load the Django app into this script | |
| # ############################################################################## | |
| # This section of code assumes that when you are running the fab script that your | |
| # current working directory is django_project/ . | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from fabric.api import run, local, hosts, cd | |
| from fabric.contrib import django | |
| django.project('django_project') | |
| import django_project | |
| from django_project.pages.models import Page, Section |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "BBEdit" | |
| set dest to make new text document | |
| select dest | |
| set oldLocation to text window 2 | |
| move document 1 of oldLocation to dest's window | |
| set files visible of dest's window to false | |
| -- bounds are Left, top, right, bottom |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Uncaught TypeError: Cannot read property 'stories' of undefined http://www.projectorpm.com/assets/projector-4a04e7931a931122fe43138035f79142.js:11 | |
| http://www.projectorpm.com/_/projects/undefined/stories?socket_id=undefinedFailed to load resource: the server responded with a status of 404 (Not Found) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "BBEdit" to set theFile to file of document 1 | |
| tell application "Finder" to set theFolder to (container of file theFile) as alias | |
| set theUnixPath to POSIX path of theFolder | |
| tell application "iTerm" | |
| tell current session of current terminal | |
| write text "pushd \"" & theUnixPath & "\"" | |
| end tell | |
| activate | |
| end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "BBEdit" to set theFile to file of document 1 | |
| tell application "Finder" to set theFolder to (container of file theFile) as alias | |
| set theUnixPath to POSIX path of theFolder | |
| set output to return & "cd '" & theUnixPath & "'; pwd" | |
| tell application "BBEdit" | |
| set uws to Unix worksheet window | |
| tell uws | |
| select insertion point after last character | |
| set selection to output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- but this in your system level Script menu (using the Script Menu builtin in OS X, or Fastscripts from http://red-sweater.com | |
| tell application "BBEdit" | |
| set newDoc to scratchpad window | |
| select newDoc | |
| activate | |
| end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #INSERTION#: | |
| #INSERTION# |