• 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
addendum: Simple problem, I'm sure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

addendum: Simple problem, I'm sure


  • Subject: addendum: Simple problem, I'm sure
  • From: Bert Knabe <email@hidden>
  • Date: Wed, 10 Sep 2003 23:51:02 -0500

I said another folder on the same machine, which is technically correct, but the folder is on another partition. I don't know if that matters, but in case it does....


On Wednesday, September 10, 2003, at 11:18 PM, Bert Knabe wrote:

And I can't figure out what I'm missing - I have just enough knowledge
of programming/scripting to screw things up. I need a simple folder
action to duplicate files in another folder on the same machine. I do
not want the folders synchronized, just anything new added to the first
folder to be duplicated in the second. I modifed the "alert when a file
is added" script that is installed with Jaguar to duplicate files in
another folder (I thought), but I've attached it to the folder I want
duplicated, and it doesn't do anything. If anyone can tell me where I
went wrong, I would be very grateful. Here is what I've done:

on adding folder items to this_folder after receiving added_items
set old_delimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to ":"
try
tell application "Finder"
--get the name of the folder
set the folder_name to the name of this_folder
end tell

set the item_count to the number of items in the added_items

if the item_count is greater than 0 then
repeat item_count times
duplicate (item 0) + 1 to "Online:PDF'S:In"
end repeat
end if
end try
set AppleScript's text item delimiters to old_delimiters
end adding folder items to

I can send the script I modified, but if you're running in OS X it's
in "Library:Scripts:Folder Action Scripts".

Bert Knabe
Computer Technician
Lubbock Avalanche Journal
806-766-2158
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.



Bert Knabe
Computer Technician
Lubbock Avalanche Journal
806-766-2158
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: addendum: Simple problem, I'm sure
      • From: Gnarlodious <email@hidden>
References: 
 >Simple problem, I'm sure (From: Bert Knabe <email@hidden>)

  • Prev by Date: Simple problem, I'm sure
  • Next by Date: Re: addendum: Simple problem, I'm sure
  • Previous by thread: Simple problem, I'm sure
  • Next by thread: Re: addendum: Simple problem, I'm sure
  • Index(es):
    • Date
    • Thread