Re: works in finder folder or script menu, not in menu bar
Re: works in finder folder or script menu, not in menu bar
- Subject: Re: works in finder folder or script menu, not in menu bar
- From: "Stockly, Ed" <email@hidden>
- Date: Wed, 02 Dec 2009 11:15:52 -0800
- Thread-topic: works in finder folder or script menu, not in menu bar
Title: Re: works in finder folder or script menu, not in menu bar
>>>this works if the selected image is in a finder folder or in the scripts meny but NOT on the desktop.........why not when its on the desktop.
Works for me, with files on the desktop. (Tiger) How does it fail?
Here’s a slightly modified version that may be a bit more reliable.
HTH,
ES
on run
tell application "Finder"
activate
set the_selection to get selection
if the class of the_selection is not list then set the_selection to {the_selection}
end tell
set theSubject to "Pic from Dad"
set theContent to "I hope you like this pic" & return & return
repeat with an_item in the_selection
set an_item to an_item as alias
set theAttachment to (an_item)
tell application "Finder"
set the_name to name of an_item
set the_extension to name extension of an_item
end tell
tell application "Mail"
activate
set MyEmail to make new outgoing message
set MessageFont to message font
set MessageFontSize to message font size
tell MyEmail
make new recipient at end of to recipients with properties {address:"email@hidden"}
set visible to true
set content to theContent
set subject to theSubject
set sender to "email@hidden"
tell content to make new attachment with properties {file name:theAttachment} at after last paragraph
end tell
end tell
end repeat
end run
_______________________________________________
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