Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need apple script help with finder

Status
Not open for further replies.

awingnut

Programmer
Feb 24, 2003
759
US
I'm an applescript and I think this likely a beginner error. I am trying to open a location in order to copy some files. The following works:
Code:
set mydata_disk "afp://userid:password@10.0.1.131"
tell application "Finder"
   open location mydata_disk
end tell
The problem is finder puts up a dialog to select the specific disk. I thought the following should work but doesn't:
Code:
set mydata_disk "afp://userid:password@10.0.1.131/Mac Data"
tell application "Finder"
   open location mydata_disk
end tell
Can someone tell me how to select the disk in this script? TIA.
 
I'm not an applescripter but wont this work?

Start a new applescript - press record = go through the procedure normally of opening the disk - then stop recording and check what applescript has recorded

Duncan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top