success! (was Re: move folder & copy image ?)
success! (was Re: move folder & copy image ?)
- Subject: success! (was Re: move folder & copy image ?)
- From: "T. Breheny / DiGiTAL ZEN" <email@hidden>
- Date: Tue, 07 Aug 2001 19:31:05 -0600
Once Upon A Time, email@hidden wrote:
>
Well, it appears that "output" is an alias to a folder. Assuming that's
>
the case, <SNIP>
yep, that is indeed the case. ;>
>
here's the final code:
>
>
tell application "Finder"
>
set the selectedItem to file "macintosh HD:clients:output"
>
set the originalItem to the original item of the selectedItem
>
set the parentFolder to the container of the originalItem
>
set the filesToBeMoved to the entire contents of the originalItem
>
move the filesToBeMoved to the parentFolder
>
end tell
outstanding-- thank you very much!
now, onto the second half of the process...
here i was able to successfully kludge my way through the syntax the first
time, but after attempting to apply the logic you outlined above, it no
longer works.
[my first attempt] - succeeds
tell application "Finder"
activate
make new folder at folder "clients"
select file "output" of folder "clients"
reveal original item of selection
move selection to folder "untitled folder" of folder "clients"
select folder "untitled folder" of folder "clients"
set name of selection to the clipboard
end tell
[attempt to clean it up, based on your input to my first script] - fails
tell application "Finder"
make new folder at folder "clients"
set the selectedItem to file "KICKer:desktop folder:clients:output"
set the originalItem to the original item of the selectedItem
move originalItem to folder "untitled folder" of folder "clients"
set name of "untitled folder" to the clipboard
end tell
this works except for the last step-- it won't paste the clipboard to the
new folder; i get the finder error: "some data could not be read".
thanks (again) for any input... i'm tryin'!!
P.S. i noticed you don't use "activate", is it optional?
cheers.
----------------------------------
Terry Breheny, Founder/Producer
DiGiTAL ZEN <
http://xtb.com>
----------------------------------
"I'll connect the dots my own way"
Calvin (& Hobbes)