Fwd: Pb whith "path to" and "do shell"
Fwd: Pb whith "path to" and "do shell"
- Subject: Fwd: Pb whith "path to" and "do shell"
- From: JM <email@hidden>
- Date: Mon, 13 Dec 2004 17:50:00 +0100
Hi
Please I have a pb with this code, would you have an idea to help me ?
tell application "Finder"
set the ChoosenFolder to choose folder with prompt "Please pick The folder containing the folders to process :"
set the DestinationFolder to choose folder with prompt "Please pick the Destination Folder :"
delete every folder of the DestinationFolder
duplicate the ChoosenFolder to the DestinationFolder
set TheChoosenFolderName to the name of the ChoosenFolder
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 ?
Thanks
JM
_______________________________________________
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