Re: Re: applications launch invisibly in 10.5?
Re: Re: applications launch invisibly in 10.5?
- Subject: Re: Re: applications launch invisibly in 10.5?
- From: Vince Angeloni <email@hidden>
- Date: Wed, 19 Mar 2008 19:01:53 -0500
Thanks Chris. In the original script, I did actually specify that the visibility of the new message was "false", but this got left behind when I edited the script for posting.
That bug in Mail probably won't be fixed tomorrow, so are there any other options someone could recommend to send an email message behind the scenes?
Vince
I thought applications were not supposed to make themselves visible when launched via applescript in Leopard unless they are specifically "activated." I have seen this work with iCal, but it seems to fail with Mail here:
tell application "Mail" set newMessage to make new outgoing message with properties {subject:"test", content:"mytext"} tell newMessage make new to recipient at end of to recipients with properties {name :"yourNameHere", address :"email@hidden"} end tell end tell
Applications do launch hidden in Leopard, and Mail did in fact launch hidden, but there's nothing to say that an application can't make itself visible in response to a command. In this case, you implicitly told it to show by not specifying "visible:false" in the outgoing message properties. That said, it wouldn't have worked right even if you did, because Leopard Mail seems to always show the new message at least briefly, so that's a bug in Mail.
--Chris Nebel AppleScript Engineering
|
_______________________________________________
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