Re: some questions
Re: some questions
- Subject: Re: some questions
- From: "Marc K. Myers" <email@hidden>
- Date: Sun, 23 Jun 2002 18:55:06 -0400
- Organization: [very little]
>
Date: Fri, 21 Jun 2002 09:58:57 -0400
>
Subject: some questions
>
From: Michael Spencer <email@hidden>
>
To: Applescript Users <email@hidden>
>
>
I feel a little stupid asking these questions1 but I want to understand AS
>
more, so I tired just doing a few basic things.
>
>
First, I wanted a script that would mount a remote server, open a folder,
>
put it in a certain place, and then move the volume icon to the second
>
screen. But try as I might, I can't figure out how to find out when the
>
remote volume is mounted, so when the script goes on to open the folder,
>
sometimes the script barfs. I tried some unsophisticated brute-force
>
methods:
>
>
mount volume "project server" on server "server" as user name "ms" with
>
password "n4xse"
>
>
repeat 10 times
>
try
>
mount volume "project server" on server "Server" as user name "msa"
>
with password "n4xse"
>
exit repeat
>
delay 4
>
end try
>
>
end repeat
>
>
tell application "Finder"
>
beep
>
end tell
>
--try
>
--mount volume "project server" on server "server" as user name "ms" with
>
password "n4xse"
>
--on error
>
--display dialog "The server volume " & volName & " was not mounted"
>
>
--end try
>
>
tell application "Finder"
>
activate
>
select disk "project server"
>
open selection
>
set size of container window of disk "project server" to {600, 700}
>
set position of container window of disk "project server" to {8, 45}
>
select disk "project server"
>
set position of selection to {-50, 345}
>
>
beep
>
beep
>
>
end tell
>
>
The beeps are my poor attempt to learn how far the script was getting.
>
>
Help!
I don't know if this works with files on servers, but it works for files
on local volumes so it's worth a try:
repeat
try
alias "[path to file goes here]"
exit repeat
on error
delay 1
end try
end repeat
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[6/23/02 6:54:10 PM]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.