Applescript to Javascript for Photoshop.

Discussion in 'Mac Programming' started by grafkaal, Jul 6, 2010.

  1. grafkaal macrumors newbie

    Joined:
    Jul 5, 2010
    #1
    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.
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    You can't really convert between the two languages. They're for different things.
     
  3. hhas macrumors regular

    Joined:
    Oct 15, 2007
    #3
    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.
     

Share This Page