• 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
Re: AFP mount
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/mac
Here 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

  • Follow-Ups:
    • Re: AFP mount
      • From: Neil Laubenthal <email@hidden>
References: 
 >AFP mount (From: Hung Phan <email@hidden>)

  • Prev by Date: Re: Symbol typing
  • Next by Date: Re: applescript uninstaller delete itself & customizing applescript application bundle binary filename (CFBundleExecutable)
  • Previous by thread: Re: AFP mount
  • Next by thread: Re: AFP mount
  • Index(es):
    • Date
    • Thread