Simple question about mount and delay script

Advertisement
November 30

Hello, I have a simple question about mounting volumes on start up.
My computer wakes up auto - and then auto there are serveral applescript tasks (mount and start up programs)
I use this script (daily) for serveral connections with external volumes I always need the connect to. ( In the script I use this code 3 times for other locations) I do this on start up.
set Uname to "XXX"
set Pword to "XXX"
set someVolume to "afp://XXX.XXX.XXX.XXX/XXX/XXX
mount volume someVolume as user name Uname with password Pword
(same code for 2 other locations)
When i do this on start up sometimes the script says there is no connection possible. I guess it's because on start up the connection isn't there. And 1 minute later when computer is total ready the connection is ok. When I run the script then It works. Just sometimes ( In the morning) 'It' want to connect but the script stops. When i do it manually(I run the script again) it works just fine.
Is it possible that I need a delay? Can someone explain this?
How would I make a delay handler for this script? Is that the best solution?
Thanks in advance. This is something small i'm wondering about.
Colin

Advertisement

Replay

BTW, If you saved the script as an application +(and not as an application bundle)+ you could drop the script on to *Drop Script Backgrounder* (freeware).
Then the script would run in the background, so, you wouldn't see it running in the Finder.
<http://www.macupdate.com/info.php/id/7922/drop-script-backgrounder-x>
Tom

View 8 Replies

Tags:

  1. itunes error code 13014 mac os 10.5.8
  2. FM VIEW_MAINTENANCE_CALL.
  3. MacBook 5,4 windows
  4. mp01 mpn
  5. does STATUS_CHANGE_EXTERN COMMIT WORK
  6. LFJ9
  7. NL3I
  8. dsccsetup ads-create no ejectur nathing
  9. F990
  10. overqr1
Copyrights 2019 Fcffair BigData Resource, All rights reserved