Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > apple srcipt

apple srcipt
Thread Tools
jay3ld
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Dec 30, 2004, 02:58 AM
 
im working on some scripts and i want 2 make it loop it self how do i do this?

Also how do i make it wait. so that way it dont start the file till it closed

any suggestions or know hows?
     
Diggory Laycock
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Dec 30, 2004, 06:29 AM
 
looping:
Code:
set looping to true repeat while looping is true -- Do the thing. if the condition is true then set looping to false end repeat
to delay use "delay x" where x is an integer in seconds.
     
larkost
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Dec 30, 2004, 09:33 AM
 
Usually the best way of waiting is to use an idle handler. There is some nice documentation on this out there. 'delay' is only for short waits... as AppleScript tends to hog the processor.
     
jay3ld  (op)
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Dec 31, 2004, 11:44 AM
 
is there a way to set its location? its trying to load another application of the same thing but i want a it to be loaded off the different place
     
suthercd
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Jan 4, 2005, 10:57 AM
 
Not sure from your question what it is you are attempting to do. Do you have the same application stored in two different places on your HD and want to have an applescript access/use/launch only one of the two? If so, use the path to the desired app when referring to it in your script.

There is applescript code ' using terms from' that keeps the focus on one app when there may be different versions of this app installed. If this is relevant to your situation and you want more info, be glad to try to help.

Craig
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 12:10 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,