Re: Time to figure out what is going on... (fixed)
Re: Time to figure out what is going on... (fixed)
- Subject: Re: Time to figure out what is going on... (fixed)
- From: kai <email@hidden>
- Date: Sun, 28 Aug 2005 18:15:31 +0100
On 28 Aug 2005, at 16:49, deivy petrescu wrote:
On Aug 25, 2005, at 1:57, kai wrote:
The same statement *can* still work when run from Script Menu -
but evidently not when Finder or the target application (in this
case Mail) are already frontmost when the script is selected.
(These somewhat curious exceptions may be responsible for some of
the differing reports when running such scripts from SM.) An
explicit activate/frontmost command would be required to work
around these anomalies.
As a cross-check, the behaviour when running from FastScripts is
slightly different again. The statement works, even if the target
app is frontmost - but still fails when Finder is at the front.
(Might this be a Cocoa thing?)
And yes, I'll willingly file a bug on all this - unless anyone
else's experience differs substantially... :-)
kai, I did not see the ed of the message. Now I just run some
tests and that is what I found
Indeed
---
click menu item "New Viewer Window" of menu 1 of menu bar item
"File" of menu bar 1 of process "Mail"
---
When run from SM if Mail is the fron app it will not work. If,
however, the front app is Finder, some strange happens. The script
runs and I noticed some disk activity, nothing seems to happen. But
if I click on the windows menu of the Mail app (brought to the
front) the new window shows up. so the process happens but it is
suspended somehow.
I found it very strange!
Thanks for that, Deivy - I hadn't noticed that, but the same
behaviour is true here. In fact, manually activating Mail and
clicking anywhere in the part of the menu bar (that belongs to Mail)
seems to result in this suspended action - even after a delay of
several minutes. I'll update my bug report accordingly.
Well spotted! :-)
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden