• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Load Photoshop Actions Solution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Load Photoshop Actions Solution


  • Subject: Load Photoshop Actions Solution
  • From: "Simon, Garry" <email@hidden>
  • Date: Mon, 26 Apr 2010 10:31:49 -0500
  • Acceptlanguage: en-US
  • Thread-topic: Load Photoshop Actions Solution

A couple of weeks ago I wrote to this forum and asked if anyone knew how to determine if a Photoshop action was missing, and how to load and run it if it was. Some of you responded with answers, for which I am grateful. I did some experimenting, and found that the following works, if anyone has use for it.

 

set MyActionSet to ("PathToActions:My Action Set")

tell application "Adobe Photoshop CS4"

       try

                   do action "myAction" from "My Action Set"

                   on error

                            try

                            load MyActionSet

                                    delay 1

                                     try

                                               do action "myAction" from "My Action Set"

                                               on error e

                                                        display dialog e with icon 0 buttons {" Cancel "} default button 1 giving up after 30

                                                        close current document saving no

                                               end try

                            end try

            end try

end tell

 

 

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: SMS Via iChat
  • Next by Date: Re: SMS Via iChat
  • Previous by thread: Re: SMS Via iChat
  • Next by thread: Synchronize 2 folders over the Internet
  • Index(es):
    • Date
    • Thread