• 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
Fwd: works in finder folder or script menu, not in menu bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: works in finder folder or script menu, not in menu bar


  • Subject: Fwd: works in finder folder or script menu, not in menu bar
  • From: Shawn Brady <email@hidden>
  • Date: Wed, 2 Dec 2009 13:42:57 -0500


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.

on run

tell application "Finder"
activate
set the_selection to get selection

repeat with an_item in the_selection
set the_name to name of an_item
set the_extension to name extension of an_item
tell application "Mail"
activate
set MyEmail to make new outgoing message
set MessageFont to message font
set MessageFontSize to message font size
set theSubject to "Pic from Dad"
set theContent to "I hope you like this pic" & return & return

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"
set theAttachment to (an_item as alias)
tell content to make new attachment with properties {file name:theAttachment} at after last paragraph

end tell
end tell
end repeat
end tell
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

  • Follow-Ups:
    • Re: works in finder folder or script menu, not in menu bar
      • From: "Stockly, Ed" <email@hidden>
  • Prev by Date: Measure Tool in Photoshop CS3
  • Next by Date: Re: works in finder folder or script menu, not in menu bar
  • Previous by thread: Measure Tool in Photoshop CS3
  • Next by thread: Re: works in finder folder or script menu, not in menu bar
  • Index(es):
    • Date
    • Thread