Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

grafkaal

macrumors newbie
Original poster
Jul 5, 2010
3
0
Hi
Can anyone tell/help me to covert this tiny bit of Applescript to Javascript so I can use it from within Photoshop CS5?

tell application "Image Capture"
activate
end tell

Many thanks in advance.
 
You can't really convert between the two languages. They're for different things.
 
Hi
Can anyone tell/help me to covert this tiny bit of Applescript to Javascript so I can use it from within Photoshop CS5?

tell application "Image Capture"
activate
end tell

Many thanks in advance.

Photoshop's embedded JavaScript engine can only manipulate Photoshop. It doesn't even have a 'doAppleScript' method for executing embedded AppleScript code. If you need to interact with other applications, you will need to write your outer script in AppleScript and embed your JavaScript code inside that, using the 'do JavaScript' command to execute it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.