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


Click here to return to the 'REVISED AGAIN! File naming for Entourage' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
REVISED AGAIN! File naming for Entourage
Authored by: swamiswami on Mar 07, '03 03:17:29PM
I couldn't get the script above to work in Entourage. Here's a script that seems to work for me:

on open these_items
	tell application "Finder"
		(*this part is to rename the PrintJob.pdf file*)
		repeat with aFile in these_items
			set a to the name of aFile
			display dialog "Enter file name for attachment" default answer a
			set the name of aFile to the text returned of result
		end repeat
	end tell
	
	
	tell application "Microsoft Entourage"
		set the new_message to (make new outgoing message with properties {attachment:{file:these_items}})
		open new_message
	end tell
end open


A few notes:
  • For some reason the dialog to rename the file doesn't come to the front automatically
  • Neither does the completed email message (although it is ready to go when you switch to Entourage)
  • I don't know why the repeat loop is needed since the print job should be a single file

Hope this helps someone.

-->Steve

[ Reply to This | # ]