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: 148
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

Re: applescript convert images

Postby NNN636473610254394183 » Mon Nov 27, 2017 6:39 am

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?
NNN636473610254394183
 
Posts: 1
Joined: Mon Nov 27, 2017 7:30 am

Re: applescript convert images

Postby ben_US » Mon Nov 27, 2017 5:06 pm

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 issues
Please make a support case for Technical Support with Capture One software:
http://support.phaseone.com and click on Contact Support, then select Technical Support.
ben_US
Crew
Crew
 
Posts: 318
Joined: Mon Feb 01, 2016 9:51 pm
Location: New York, USA


Return to Expression Media



Who is online

Users browsing this forum: No registered users and 1 guest