Member since Jan 03, 2007, follows 0 people, 0 public groups, 158 public bookmarks (168 total).
More »
Tags
| Recent Tags: | |
|---|---|
| Top Tags: |
More »
Recent Bookmarks and Annotations
-
Settings for tethering a Macintosh to a Cingular EDGE phone via Bluetooth - MacNN Forums on 2007-01-10
-
Service Provider: Cingular (optional)
Account Name: WAP@CINGULARGPRS.COM
Password: CINGULAR1
Telephone Number: wap.cingular
-
-
AppleScript Shell Programming on 2007-01-03
-
Interactive execution of AppleScript commands
Handles multi-line commands (e.g. 'tell') by going into a mode - current mode is
indicated by the prompt
Subroutines (starting with "on" or "to")
and script objects (starting with "script") are persistent
and thus are available for use in any subsequent interactive command
Can be used as the "
shebang" interpreter for stand-alone scripts that run non-interactively.
The "shebang" line for such scripts would be: #!/usr/bin/env ash
(assuming that the 'ash' script is in your PATH)
You can also execute files of AppleScript commands by supplying the filenames
on the command-line when you invoke 'ash'.
The "-source" command can be used to execute the commands in a file
(like the 'source' command in 'tcsh' and 'bash')
This is especially useful for bringing in subroutine definitions.
The "-echo" command can be used to output the values of AppleScript
expressions - this is especially useful for debugging. For example:tell application "Finder"
set theSelection to selection
set n to number of items in theSelection
-echo "number of items selected: " & n
repeat with i from 1 to n
-echo "item " & i & " is " & (item i of theSelection as alias)
end repeat
end tell
The "-abbrev" command allows creation of abbreviations for commonly
used phrases
The "-show" command displays the current AppleScript
The "-editor" command sends the current AppleScript to Apple's "Script Editor"
The "-rerun" command reruns the most recently executed AppleScript
The "-batch" command allows a bunch of AppleScript commands to be batched
up for later execution
The "-read" command can be used to read from the keyboard into an AppleScript
variable.
The "-cd", "-pwd", "-ls" commands operate like the standard shell commands.
The "-!" escape can be used to run an arbitrary Unix command.
The "-createMan" command generates a 'man page' file for 'ash'.
You can use the "-oneoff" command-line option to have 'ash' automatically exit
after running one (interactively supplied) AppleScript command.
You can enable a "trace facility" for the execution of your AppleScripts via
the "-trace" option. In trace mode, the execution pauses after each AppleScript
statement and displays the result from the previously executed statement.
More detailed usage information is available via the "-help" command.
Features
-
- Command-Tab ยป Xdisc: Mac Xbox ISO Utility on 2007-01-03
-
Geek to Live: Six webapps to help keep your New Year's resolutions - Lifehacker on 2007-01-03
-
Ok goal-setters, we're three days into 2007 - is your New Year's resolve flagging? Lots of you set out to lose weight, save money, quit smoking, get organized, write more and spend less time on the internet this year. But if January 3rd is seeing you fall back into 2006-style bad habits, take heart: sometimes you just need a little help from your webapp friends.
Today there are more consumer-oriented web applications than ever before built to help you achieve your personal goals. (Well, except that one about spending less time on the internet.) Follow me for a rundown of the best online tools for making, tracking and sticking to new resolutions - in January or any other month of the year.
-
- Entropy :: start/2006-03-10/1 on 2006-12-30
- MacScripter BBS | Applescript Forums / Moving files to folders according to File Types on 2006-12-30
- Benjamin Franklin's 13 Virtues on 2006-12-30
- How to convert a VIDEO_TS to DivX with ffmpegX (MacOS X) on 2006-12-30
- New pill increases dreaming sleep on 2006-12-30
- Multi-Touch Interaction Research on 2006-12-30
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo