Mac OS X Hints Weblog: Add AppleScript support to Preview
#1
Posted 13 October 2006 - 09:20 AM
#2
Posted 13 October 2006 - 04:24 PM
Use a simple Terminal command to add basic AppleScript support to Preview.
Very strange, since Automator does things in Preview no problem. I guess it's using Coca rather than Applescript to do it? /forums/ubbthreads/images/graemlins/wink.gif
#3
Posted 13 October 2006 - 06:13 PM
-rob.
#4
Posted 15 October 2006 - 11:27 AM
Use a simple Terminal command to add basic AppleScript support to Preview.
Very strange, since Automator does things in Preview no problem. I guess it's using Coca rather than Applescript to do it? /forums/ubbthreads/images/graemlins/wink.gif
When I first heard about automator I thought it would be a great way to, well, automate some repetative tasks. I thought it would be an easier way to do what apple script can do with an intuitive interface. That turned out to not be the case. While automator seems a bit easier, I don't fully understand what it can do, how to do it and what the limitations are. Does anyone know of some recommended reading that could perhaps help me with automator?
#5
Posted 16 October 2006 - 04:41 PM
Yea, I'm not sure how Automator works its magic ... but if you use Script Editor's "Open Dictionary" command, you can see that Preview completely lacks an AppleScript dictionary.
Automator uses its own programming framework rather than AppleScript or its underlying Apple Events. This allows Automator actions to be written in several different programming languages (including AppleScript, Objective-C and shell scripts) and use things other than scriptable applications.
#6
Posted 10 January 2007 - 04:30 PM
#7
Posted 18 October 2009 - 03:48 PM
#8
Posted 19 October 2009 - 03:17 AM
-rob.
#9
Posted 04 December 2011 - 10:10 AM
It will break Preview and even deleting the key from Preview's defaults won't fix it. Luckily I was able to salvage a functional Preview from Time Machine.
#10
Posted 26 June 2012 - 04:36 AM
nbidgood, on 04 December 2011 - 10:10 AM, said:
It will break Preview and even deleting the key from Preview's defaults won't fix it. Luckily I was able to salvage a functional Preview from Time Machine.
It also work on Snow Leopard (and probably Lion also) *BUT* obviously, you need to add the following commands after the defaults write command :
sudo plutil -convert xml1 /Applications/Preview.app/Contents/Info.plist sudo chmod a+r /Applications/Preview.app/Contents/Info.plist
(since the format of the Info.plist has changed in Snow Leopard, so it needs to be converted with plutil...)
This post has been edited by Pigeo: 26 June 2012 - 04:39 AM
#11
Posted 22 August 2012 - 07:58 PM
#12
Posted 22 August 2012 - 11:36 PM
billybillybillybilly, on 22 August 2012 - 07:58 PM, said:
Always good to check the publication date on these things -- particularly when they're as old as 2006.
#13
Posted 17 March 2013 - 07:56 AM
Help













