Re: move folder & copy image ? (newbie)
Re: move folder & copy image ? (newbie)
- Subject: Re: move folder & copy image ? (newbie)
- From: Mr Tea <email@hidden>
- Date: Tue, 07 Aug 2001 01:29:08 +0100
This from T. Breheny / DiGiTAL ZEN - dateline 7/8/01 12.30 am:
>
is there an AS equivalent to: "../" used to navigate up a directory?
<snip>
>
i need to select all the files in a folder and have them moved to
>
the parent folder.
You can use 'container of' to move up a level. Something like:
tell application "Finder"
set theFolder to alias "Hard Disk!:Folder:Subfolder:"
set theFiles to every file of theFolder
move theFiles to container of theFolder
end tell
The alternative is to pick the destination folder out of the path by working
back through the colons, so to speak.
HTH
Mr Tea
--
Brew of the day: Korean Gunpowder Green
Visit the Tea Room at:
http://homepage.mac.com/mrtea/tearoom.html