• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
new folder / move all REVISITED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new folder / move all REVISITED


  • Subject: new folder / move all REVISITED
  • From: "T. Breheny / DiGiTAL ZEN" <email@hidden>
  • Date: Sun, 09 Sep 2001 11:47:45 -0600

greetings,

i've since been able to simplify my script/process by forgetting about fancy
alias scenarios-- i just need to copy the contents of a fixed/known folder
to the most recently created folder in another directory (created by AS via
a filemaker script).


so w/ some help from brennan young (thanks) and the tidbits i picked up here
previously, i've come to the following:

-------------------------------------------------------------------------
property mainContainer : alias "KICKer:VAIL01:"
property mostRecentFolder : 0 -- just a dummy to start with

tell application "Finder"
activate

set the selectedItem to folder "KICKer:VAIL01:output"

set the filesToBeMoved to the entire contents of the selectedItem

if mostRecentFolder is not 0 then -- for first time round
move the filesToBeMoved to mostRecentFolder of mainContainer
else
display dialog "This is the first time you have run this script!"
end if

set fp to {name:the clipboard}
set mostRecentFolder to (make new folder at mainContainer with
properties fp)


end tell
--------------------------------------------------------------------------

this results in a finder error: "invalid key form" w/ the
"move the filesToBeMoved to mostRecentFolder of mainContainer"
line highlighted.

any ideas? better approach? i really need this to be up & running by
tuesday...

thanks in advance.

terry


  • Follow-Ups:
    • Re: new folder / move all REVISITED
      • From: "Bob.Kalbaugh" <email@hidden>
  • Prev by Date: Re: Anyone know how to set an arbitrary subset of record elements? (another reason that associative arrays would be nice)
  • Next by Date: Re: new folder / move all REVISITED
  • Previous by thread: Re: saving text as XPress tags
  • Next by thread: Re: new folder / move all REVISITED
  • Index(es):
    • Date
    • Thread