Re: AFP mount
Re: AFP mount
- Subject: Re: AFP mount
- From: Luca Pozzato <email@hidden>
- Date: Mon, 16 Apr 2007 13:06:09 +0200
On 10/apr/07, at 20:17, Hung Phan wrote: I write an applescript to mount an afp sharepoint at location /technology/instructions/macHere is the script: tell application "Finder" activate try mount volume "afp://" & username & ":@myserver_name/technology/instructions/" end try try open folder("technology:instructions:mac") on error display dialog "Sorry, Cannot access your folder. " buttons "Ok" default button "Ok" end try end tell
Everytime we run, we receive "Sorry, Cannot access your folder" message but get the shared point to mount at technology. Is the open folder command correct?
Thank you for your help,
hi Hung,
since you got the message the error is in "open folder…", just add a colon at the end or check if the path really exists
try open folder ("technology:instructions:mac:")--colon after mac on error mymsg display dialog mymsg & return & return & "Sorry, Cannot access your folder. " buttons "Ok" default button "Ok" end try
Luca
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >AFP mount (From: Hung Phan <email@hidden>) |