Posted this over in the Apple Support Communities but thought I'd have a better chance at a reply here.
I've been using Apple computers since '84 but I've never used Appplescript and was hoping for some help.
I'd like to be able to place a random image in Messages with an Applescript through TextExpander. When I type my snippet into Messages the Finder will open a random image from a folder using something like this:
If I replace "Finder" with "Messages" it doesn't work. Do I need to combine 2 Applescripts to make this happen?
TIA
I've been using Apple computers since '84 but I've never used Appplescript and was hoping for some help.
I'd like to be able to place a random image in Messages with an Applescript through TextExpander. When I type my snippet into Messages the Finder will open a random image from a folder using something like this:
Code:
tell application "Finder"
set randomImage to some file of folder "Mac HD:Users:me:photos:chat pics"
get randomImage
open randomImage
end tell
If I replace "Finder" with "Messages" it doesn't work. Do I need to combine 2 Applescripts to make this happen?
TIA