Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A folder action script to size, rotate, and mail images Desktop
I have created a script (view source) to work with images, specifically, images you'd like to email. I'm not a pro, so this script is based on the apple "image-duplicate as jpeg" script that can be found in the /Library -> Scripts -> Folder Action Scripts folder. It's designed to be used as a script action on a folder. When you put a pic in the folder, the script creates a copy of it, then asks for the target resolution and degrees of rotation, and then finally puts the final version into a new blank mail message.

[robg adds: I tested this, and it worked just as described. I saved the file as a script, then created a new folder and attached the script as a folder action. Drag and drop an image file onto the folder, answer the two questions, and presto -- new mail message opens with my resized and rotated image attached.]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[6,611 views]  

A folder action script to size, rotate, and mail images | 4 comments | Create New Account
Click here to return to the 'A folder action script to size, rotate, and mail images' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A folder action script to size, rotate, and mail images
Authored by: tngland on Oct 18, '04 04:26:14PM

Could anybody more adept at scripting (that is, almost anybody) tell me what would need to be changed in this script to have it work with Entourage?
Thanks.

---
Thomas S. England
Decatur GA 30030
Portfolio:
http://englandphoto.com/portfolio//



[ Reply to This | # ]
A folder action script to size, rotate, and mail images
Authored by: oink on Oct 19, '04 08:59:08AM

I have entourage strip and save all attachments to a specific folder, I am sure you can use the script on that folder... I have a similar script that purges old files from the attachment folder.

---
blurred visionary



[ Reply to This | # ]
A folder action script to size, rotate, and mail images
Authored by: orpy on Oct 19, '04 01:29:27PM

Entourage is smart enough to know that if you try to open an image or PDF that you'll probably want it attached to an email.

So, something as simple as this:

set myFile to choose file
tell application "Microsoft Entourage"
activate
open myFile
end tell

Should make Entourage create a new message window with the file that you've chosen attached to the message.

You should be able to just replace the word "Mail" with "Entourage" - although I'd "activate" it first before getting it to open the file ;-)


---
--
Martin



[ Reply to This | # ]
A folder action script to size, rotate, and mail images
Authored by: regulus on Oct 20, '04 01:10:15PM

This script is great, but I need another feature that I don't know how to do. The file sizes I'm getting are still too large, for example when I drag a 2.4 MB file on it and modify it to a 600 resolution file, the resulting file is 124 KB... still too large. Most of my pictures are over 2.4 MB in size due to my 5 megapixel camera.

Is there a way to adjust the "quality" of the picture, like I can do in Graphic Converter, and thus further reduce the file size?



[ Reply to This | # ]