• 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
Automator and AppleScript to filter files > 10 Mb
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Automator and AppleScript to filter files > 10 Mb
      • From: Michelle Steiner <email@hidden>
    • Re: Automator and AppleScript to filter files > 10 Mb
      • From: "Stockly, Ed" <email@hidden>
    • Re: Automator and AppleScript to filter files > 10 Mb
      • From: David Kahn <email@hidden>
  • Prev by Date: Re: Xcode splitter get size/set size
  • Next by Date: Re: Automator and AppleScript to filter files > 10 Mb
  • Previous by thread: Re: Learning how to develop iPhone apps
  • Next by thread: Re: Automator and AppleScript to filter files > 10 Mb
  • Index(es):
    • Date
    • Thread