Automator and AppleScript to filter files > 10 Mb
Automator and AppleScript to filter files > 10 Mb
- Subject: Automator and AppleScript to filter files > 10 Mb
- From: Thierry Willemsens <email@hidden>
- Date: Tue, 16 Mar 2010 00:14:36 +0100
Hello everybody,
first post for me on this users list, really impress to see the level
here...
My little problem I would like to to make a folder action to get an
alert window when the file is bigger or equal to 10 Mb.
I've started with Automator with : Get Specified Finder Items.
After that because I use the french Automator's version : Run an
AppleScript
Here is my little script, but how can I specify the size of 10 Mb ?
on adding folder items to this_folder after receiving added_items
if added_items is greater or equal to
tell application "Finder"
activate
display dialog "Ce fichier fait plus de 10 Mb" with icon stop
end tell
end adding folder items to
Do I need to add another action to close the script after that ?
Thanks for your help.
Thierry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden