Link to home
Start Free TrialLog in
Avatar of Martin Liss
Martin LissFlag for United States of America

asked on

"Some parameter not understood" error when mounting drive

I have a USB drive named IDrive attached to my iMac. When I run this simple AppleScript it gives the above error highlighting line 3. What am I doing wrong?
tell application "Finder"
	if not (disk "IDRIVE" exists) then
		mount volume "IDrive"
	end if
end tell

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Martin Liss

ASKER

Self-solved.