Re: applications launch invisibly in 10.5?
Re: applications launch invisibly in 10.5?
- Subject: Re: applications launch invisibly in 10.5?
- From: Christopher Nebel <email@hidden>
- Date: Wed, 19 Mar 2008 14:31:14 -0700
On Mar 19, 2008, at 1:10 PM, Vince Angeloni wrote: 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