• 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
Trouble getting AppleScript to execute an Automator app multiple times
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble getting AppleScript to execute an Automator app multiple times


  • Subject: Trouble getting AppleScript to execute an Automator app multiple times
  • From: Stephen Ferris <email@hidden>
  • Date: Tue, 14 Aug 2007 17:02:35 -0600

I have an Automator app that works well when I execute it once in conjunction with iPhoto.  However, I would like to execute it multiple times using Applescript.  When I do this using a simple "repeat" in AppleScript (I'm a beginner), the Automator app only executes successfully once and then it stops.  This is the script: 

repeat 10 times
            tell application "Finder"
                        activate
                        select window of desktop
                        select window of desktop
open application file "iPhoto Automator Test app.app" of folder "Desktop" of folder "stephenferris" of folder "Users" of startup disk
                       
            end tell
end repeat

Any ideas what might be wrong?

Thanks
 _______________________________________________
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: Re: Get Random number?
  • Next by Date: Re: Get Random number?
  • Previous by thread: Re: Get Random number?
  • Next by thread: [example]: Applescript and Quicktime, converting time string to movie location
  • Index(es):
    • Date
    • Thread