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


Click here to return to the 'use alias of email program instead' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
use alias of email program instead
Authored by: mclbruce on Feb 18, '03 04:50:23PM

There is no need to use the example script. Juat make an alias of your email program and put that in the PDF Services folder. You can name the alias whatever you want. This works for Entourage as well as Mail.app.



[ Reply to This | # ]
use alias of email program instead [not necessarily]
Authored by: richard_k_smith on Feb 18, '03 11:41:48PM
It is probably worth it to cut and paste the applescripts from the Apple Web site, and to correct the spacing errors that are somehow introduced int eh process, since you get the side benefit of having the new email message window pop up on your screen, as opposed to sitting in the background (although some may see that as a feature).

By the way, does anyone know how to have the "To:" field selected in the window? Sometimes it is (for example if you just drag a file to the Mail icon in the dock) but other times it isn't (for example if you ask Safari to email a selection using the services menu item).

If you're frustrated with the code that apple has posted and can't figure out how to get the spaces to work where you want them to, paste this into the Script Editor's "new script" window, and save as "Send via Mail" or something in the ~/Library/PDF Services folder:

on open these_items
	tell application "Mail"
		set the new_message to (make new outgoing message with properties {visible:true})
		tell the new_message
			tell content
				repeat with i from 1 to the count of these_items
					set this_file to item i of these_items
					make new attachment with properties {file name:this_file} at before the first character
				end repeat
			end tell
		end tell
	end tell
end open


[ Reply to This | # ]