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. what hv to do after stolen kaptop
  2. LinkedIn messages who dents them
  3. apple tv hulu no signal
  4. removing exeifes apple id
  5. error: err_wis_30270 how to restore file
  6. PEXR 2002
  7. Using the load TXT
  8. modifing a ke30 report
  9. usefule1m
  10. within6fx
Copyrights 2019 Fcffair BigData Resource, All rights reserved