Re: Script needed: When a file or folder is added to a drop box, an alias to the file is created in another folder...
Re: Script needed: When a file or folder is added to a drop box, an alias to the file is created in another folder...
- Subject: Re: Script needed: When a file or folder is added to a drop box, an alias to the file is created in another folder...
- From: Jay Louvion <email@hidden>
- Date: Tue, 31 Jan 2006 23:31:59 +0100
Title: Re: Script needed: When a file or folder is added to a drop box, an alias to the file is created in another folder...
On 31/1/06 23:09, "tomáz rezistänz" <email@hidden> wrote:
I tried recording this using Applescript but I think it's too complex for recording..
Nope, it’s just that most of the recording hasn’t worked since OS9
And here’s for you to dabble with:
on adding folder items to this_folder after receiving these_items
repeat with this_item in these_items
tell application "Finder"
try
tell application "Finder" to set theFolder to ((desktop as text) & "Test" as string) as alias —edit this bit according to the folder where you want the alias (this one points to an existing folder “test” on your desktop)
make alias file to this_item at folder theFolder
on error mistake
activate
display dialog mistake
end try
end tell
end repeat
tell application "Finder" to open theFolder
end adding folder items to
HTH.
J.
Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva
T+4122 840 3272
F+4122 840 3271
skypeme:
jaylouvion
www.studiocasagrande.com
P Please consider the environment before printing this email.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden