• 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
Re: Move Items script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Move Items script


  • Subject: Re: Move Items script
  • From: email@hidden
  • Date: Tue, 20 Feb 2001 02:05:55 EST

In a message dated 2/19/01 5:57:26 PM, Timothy Hellum wrote:

> Does anyone have a simple move-items-from-one-folder-to-another script
>that I might work into a more complex script I'm working on? Currently I
>have a script working as a folder action that filters images saved into it
>for their colourspace. I would like to have items moved to a second folder
>that fail the filtering. I can post the script if anyone would like, but
>its rather long at the moment and, as I am a newbie, I'm kind of embarrassed
>at its current clunky state...cough, cough.

Here's a snippet. The handlers it calls and properties it references are from
the sample folder action scripts which Sal wrote (included on a standard
system install I believe). If you can't find them (and I want you to look and
find them - they're very helpful) I can send the rest of this script to you
off list.

property mirrorFolder : "HardDrive:folder:subfolder:"

on adding folder items to this_folder after receiving added_items
try
if copy_checks_indicator is true then
set the added_items to my check_added_items(the added_items)
if the added_items is {} then return "no valid items"
end if

repeat with anItem in added_items
tell application "Finder"
duplicate anItem to folder mirrorFolder
end tell
end repeat

end try
end adding folder items to

Jeff Baumann
email@hidden
www.linkedresources.com

11 Days, 17 Hours, 54 Minutes
How is it going to end?


  • Prev by Date: Re: AppleScript e-mail encode/decode tool
  • Next by Date: Re: Sorting through e-mails
  • Previous by thread: Move Items script
  • Next by thread: how to get Word 98 to stop spawning Word Work Files
  • Index(es):
    • Date
    • Thread