Re: Script Editor Bug Tracking Open Windows?
Re: Script Editor Bug Tracking Open Windows?
- Subject: Re: Script Editor Bug Tracking Open Windows?
- From: Shane Stanley <email@hidden>
- Date: Fri, 09 Mar 2018 16:42:53 +1100
On 9 Mar 2018, at 4:28 pm, Jonathan Levi <email@hidden> wrote:
> do shell script "open $HOME/Desktop/" & fname
> logWindowCountsTwoWays(fname)
You're possibly only using this code for testing, but it's generally a very bad
idea. The "do shell script" command will return as soon as the open command has
been issued, so it's a matter of luck whether the file will actually be open
before the next statement in your script is executed. It's recipe for
intermittent errors.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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