Re: addendum: Simple problem, I'm sure
Re: addendum: Simple problem, I'm sure
- Subject: Re: addendum: Simple problem, I'm sure
- From: Gnarlodious <email@hidden>
- Date: Wed, 10 Sep 2003 23:49:53 -0600
tell application "System Events" to set statusList to get properties
will tell you if System Events is enabled.
Maybe you didn't hear, but "System Events" need to be installed and
activated for Folder Actions to work.
I believe you need to open the "Universal Access" prefpanel and select
"Enable Access for Assistive Devices". If I'm wrong someone will explain
further.
--Rachel in Santa Fe
Entity Bert Knabe spoke thus:
>
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.
_______________________________________________
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.