Applescript Examples & Scripts
Below you'll find some scripts that I feel are useful.
There are lots of resources out there that outline some of the more basic tasks and principals of applescript,
so I'll only be posting those that I feel are not very well documented or are somewhat unique.
If you can't find something here, try macscripter.net's applescript forums for a good archive of scripts and helpful scripters.
Finder & System
· addIconToDock ·· Programmatically add an application to the dock
· copyIconToIcon ·· Finder script to copy the icon from one item to another
· internetLocationFile ·· Create an internet location file in the finder
· OSVersion ·· Get the OS version
· toggleInvisibles ·· Show or hide invisible files in the Finder
· classicStatus ·· Start or stop the mac Classic environment
Files & Folders
· makeNewFolder ·· Use 'mkdir' shell script to create a folder
Lists & Records
· getRecordByName ·· Get the value of a key/value list record by it's key