Panther script hassle: network paths aren't so simple anymore...
Panther script hassle: network paths aren't so simple anymore...
- Subject: Panther script hassle: network paths aren't so simple anymore...
- From: Charles Arthur <email@hidden>
- Date: Sun, 26 Oct 2003 17:44:43 +0000
Hi..
Read on. This has a happy ending.
in Jaguar I had a script which I used to copy files to a network disk, as
follows:
with timeout of 60 seconds
tell application "Finder"
try
copy selection to folder "Edhns" of folder "Desks"
of folder "Indy Home" of disk "Daily News"
beep
on error error_msg
activate
display dialog ("Copy script hassle:" & return &
return & error_msg) as string
end try
end tell
end timeout
However with Panther I'm getting an error - specifically:
"Finder got an error: Can't set folder \"Edhns\" of folder \"Desks\" of
folder \"Indy Home\" of disk \"Daily News\" to selection."
Oh.... (looks in Finder dictionary and finds
copy: (NOT AVAILABLE YET) Copy the selected items to the clipboard (the
Finder must be the front application)
)
Well, whose smart idea was that to break that functionality?
OK, so I'll try duplicate... (tries)
Nope, same error. I can't even open that location. Something seems very
different about the way that networked disks are treated.
...but Aha! The Panther Finder is RECORDABLE!
which yields that the path I'm sending to is now folder "Edhns" of folder
"Desks" of folder "Indy Home" of item "Daily News" of folder "Indy1" of
folder "EDITORIAL" of folder "Network" of folder "automount" of folder
"var" of item "private" of startup disk. Whew. That would have been an easy
guess, right?
Insert that and use "duplicate" rather than "copy" and voila! Sorted.
Thank God for the newly recordable Finder, is all....
Charles
--
----------------------------
http://www.ukclimbing.com : 1100+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features. And there's even a cool shop attached.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.