Re: Pb whith "path to" and "do shell"
Re: Pb whith "path to" and "do shell"
- Subject: Re: Pb whith "path to" and "do shell"
- From: Christopher Nebel <email@hidden>
- Date: Mon, 13 Dec 2004 10:01:39 -0800
On Dec 13, 2004, at 8:50 AM, JM wrote:
tell application "Finder"
...
set MyList to every folder of folder TheChoosenFolderName of the
DestinationFolder
repeat with i from 1 to the number of items in MyList
set ThisFolder to item i of MyList
do shell script " cd " & quoted form of POSIX path of ThisFolder
end repeat
end tell
It seems that the script can't get the path of ThisFolder !! Where is
the mistake ?
The problem is that "POSIX path" is only a property of aliases, not of
Finder objects, which is what ThisFolder really is. Say "POSIX path of
(ThisFolder as alias)" and it should work.
--Chris Nebel
AppleScript Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden