set fileReference to ((path to applications folder) as string) & "iTunes.app:Contents:Resources:genre-animation.jpg" set myPhotoshopController to my PhotoshopController() myPhotoshopController's openDocument(fileReference) on PhotoshopController()
script alloc
on openDocument(fileReference) tell application "Adobe Photoshop CS3" activate open file (fileReference) showing dialogs never end tell end openDocument
end script
copy alloc to init return init
end PhotoshopController |
A blog about programming, music, design, politics and occasional commentary on things that shouldn't be all organized into no discernible order whatsoever.
Wednesday, August 3, 2011
How to AppleScript like a boss - Writing object oriented AppleScripts
Subscribe to:
Posts (Atom)