Re: Help with Script to mount SMB
Re: Help with Script to mount SMB
- Subject: Re: Help with Script to mount SMB
- From: Shane Stanley <email@hidden>
- Date: Fri, 16 Oct 2015 23:26:20 +1100
On 16 Oct 2015, at 11:19 PM, Ball, Dan <email@hidden> wrote:
Here is what I changed it too:
You don't need all those 'tell app "Finder"' blocks -- nesting them is pointless. And the "mount volume" command should *not* be inside a Finder tell block -- it has nothing to do with the Finder. Try something like this:
set diskName to "share" set itExists to false tell application "Finder" if disk diskName exists then display dialog "I cannot locate your U: Drive or you already have it mounted!" buttons {"Cancel"} default button "Cancel" with icon caution giving up after 10 set itExists to true end if end tell if not itExists then try end try end if |
_______________________________________________
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