• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
some questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

some questions


  • Subject: some questions
  • From: Michael Spencer <email@hidden>
  • Date: Fri, 21 Jun 2002 10:06:42 -0400

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!

Michael Spencer
_______________________________________________
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.

  • Prev by Date: Re: Bevel and emboss with PSD7
  • Next by Date: Re: Mouting a server in OSX
  • Previous by thread: Re: WAS: BUG: Where's Application Support? IS: BBEdit
  • Next by thread: some questions
  • Index(es):
    • Date
    • Thread