applescript convert images

Discussions about Expression Media

applescript convert images

Postby rapdigital » Sun Dec 15, 2013 9:09 pm

I'm trying to save the thumbnails of the selected images of an open catalog but keep getting errors. I've tried this
Code: Select all
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?
rapdigital
Certified Professional
Certified Professional
 
Posts: 146
Joined: Mon Feb 02, 2009 1:52 pm

Re: applescript convert images

Postby NNN636074493211147594 » Mon Aug 22, 2016 8:33 am

is this only for the Lion Platforms? In Snow Leopard I do not see Files&Folders; in the Library.?
NNN636074493211147594
 
Posts: 1
Joined: Mon Aug 22, 2016 8:55 am

Re: applescript convert images

Postby RomVA » Sat Sep 16, 2017 12:19 pm

Code: Select all
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.
RomVA
 
Posts: 7
Joined: Tue Mar 01, 2016 10:22 pm


Return to Expression Media



Who is online

Users browsing this forum: No registered users and 4 guests