Skip navigation
Currently Being Moderated

Convert Javascript to Applescript

Apr 3, 2012 11:54 PM

Hi,

 

I need to convert javascript to Apple script. Please help!!!

 

try {

app.activeDocument.layers.getByName( '.ARD' ).remove(); } catch (e) {};

 

MOhan

 
Replies
  • Currently Being Moderated
    Apr 4, 2012 4:10 AM   in reply to Mohanvalli

    tell application "Adobe Illustrator"

              tell the current document

                        try

                                  delete (the first layer whose name is ".ARD")

                        end try

              end tell

    end tell

     

    It's always a help if you state the language choice in the question…

     

    Edit… a change of string filter

    tell a

    tell application "Adobe Illustrator"

              tell the current document

                        try

                                  delete (the first layer whose name ends with ".ARD")

                        end try

              end tell

    end tell

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)