• 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
snow leopard broke my script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

snow leopard broke my script


  • Subject: snow leopard broke my script
  • From: Shawn Brady <email@hidden>
  • Date: Sat, 28 Nov 2009 20:58:33 -0500

I upgraded to 10.6.2 and now this script does not work. Dang. Can anyone help explain why.



tell application "Finder"
activate
set the_selection to get selection



repeat with an_item in the_selection
set the_file to an_item as string
set the_name to name of file the_file
set the_file_name to characters 1 thru -5 of the_name
--set the_file_name2 to the_file_name & ".3g2"
set name_extension to name extension of item the_file



if name_extension contains "jpg" then
-- make an outgoing email, add attachment
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
delay 1
-- send MyEmail


end tell

end if

end repeat
end tell
 _______________________________________________
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: snow leopard broke my script
      • From: Brian Christmas <email@hidden>
    • Re: snow leopard broke my script
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: More date/time stuff (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: Activation on media insertion?
  • Next by Date: Re: snow leopard broke my script
  • Previous by thread: Re: More date/time stuff
  • Next by thread: Re: snow leopard broke my script
  • Index(es):
    • Date
    • Thread