someone help…please…
If you save this as a stay open application, does it work?
tell application "Finder"
mount volume "studat" on server "ML-STUDENT-SERV" as user name "admin" with password "mvwsd"
activate
select file "AR"
open selection
end tell
repeat
do shell script "sleep 60" -- pauses script for 60 seconds - works only in OS X
-- delay 60 -- use on pre-OS X machines
tell application "Finder" to set exists_ to exists process "Accelerated Reader® Student"
if exists_ is false then
tell application "Finder" to put away disk "studat"
tell me to quit
end if
end repeat
– Rob
tell application "Finder"
mount volume "studat" on server "ML-STUDENT-SERV" as user name "admin" with password "mvwsd"
activate
select file "AR"
open selection
end tell
repeat
tell application "Finder"
"delay 60"
tell application "Finder" to set exists_ to exists process "Accelerated Reader® Student"
if exists_ is false then
tell application "Finder" to put away disk "studat"
tell me to quit
end if
end tell
end repeat
I got that to work except at the very very end it says;
Can’t get disk studat of application finder
its kicking the server, its doing everything else right!!! yay
Thank you very much
I’m sorry I’m just coming to this thread but looking at you script, the “delay 60” in quotes won’t do anything as a string and you’ve got al sorts of nested tells. I can’t test this but it seems to me this would work saved simply as an application (no explicit quit statement needed, it would just quit when the repeat loop exit conditions were met):
Jon
[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]