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 17:39:24 +1100
On 9 Mar 2018, at 5:24 pm, Jon Pugh <email@hidden> wrote:
>
> Here’s a better script snippet:
>
> --do shell script "open $HOME/Desktop/" & fname
> tell application "Finder" to open folder fname of desktop
I guess you meant file rather than folder, but it still runs the same risk of
the file not being open before the next statement is executed.
Safer to tell Script Editor:
set theDoc to (((path to desktop) as text) & fname) as alias
tell application "Script Editor"
open theDoc
end tell
--
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