applescript convert images
I'm trying to save the thumbnails of the selected images of an open catalog but keep getting errors. I've tried this
Little HELP?
set theoptions to "thumbnail"
tell application "Expression Media 2"
convert images of catalog 1 with options theoptions saving in thePath as alias
end telll
Little HELP?
0
-
is this only for the Lion Platforms? In Snow Leopard I do not see Files&Folders; in the Library.? 0 -
tell application "Media Pro"
activate
set a to selection of catalog 1
set b to thumbnail of item 1 of a
set the clipboard to b as picture
end tell
Thumbnail is read only and AppleScript can't work with images/pictures data. All it can do is pass the data to an application which can work with the data.
Don't know which version of OS X you have. But once you have the data in the clipboard you can pass it to the application 'Preview' and use it's function 'New From Clipboard' and save the images. From there you can use applescripts "Image Events" to process the image at you hearts content. You can't pass the data straight to "Image Events" because it only works with files, thats why you first need to create the file with Preview.0 -
Hello,
I'm having issues with Applescript working properly for a number of commands...
Here are some examples:
tell application "Microsoft Word"
execute find find text "hello"
end tell
The resulting response is:
error "Microsoft Word got an error: Can’t continue execute find." number -1708
Another example:
tell application "Microsoft Word" to page scroll down 1
And the result:
error "Microsoft Word got an error: Can’t continue page scroll." number -1708
Does anyone have an idea what is going on? Is my applescript incorrect or am I missing something else?0 -
[quote="NNN636473610254394183" wrote:
Hello,
I'm having issues with Applescript working properly for a number of commands...
Here are some examples:
tell application "Microsoft Word"
execute find find text "hello"
end tell
The resulting response is:
error "Microsoft Word got an error: Can’t continue execute find." number -1708
Another example:
tell application "Microsoft Word" to page scroll down 1
And the result:
error "Microsoft Word got an error: Can’t continue page scroll." number -1708
Does anyone have an idea what is going on? Is my applescript incorrect or am I missing something else?
This forum is for Expression Media. I suggest doing some research elsewhere for Microsoft Word-specific AppleScript issues0
Please sign in to leave a comment.
Comments
4 comments