Re: Unwanted output
Re: Unwanted output
- Subject: Re: Unwanted output
- From: debt <email@hidden>
- Date: Wed, 24 Aug 2016 10:00:26 -0700
> On Aug 24, 2016, at 7:37 AM, Steve Mills <email@hidden> wrote:
>
> In Terminal? I think you're mistaken. I'm pretty sure you mean it's output to the log pane/window of which ever script editor you're using.
Thanks, Steve, but that’s not correct. Running the following code in Terminal does what I said before:
system('osascript', '-e',
'tell application "BBEdit"
activate
open "/some/file.txt"
end tell');
> That's expected, since it's the result of the "open" command.
That may be, but I’d still like to keep it from being printed to the screen, if at all possible. Is there a way to suppress output like this?
Side question: why does it print "text document 1” instead of the name of the file being explicitly opened?
Thanks,
Marc
FWIW, the main script is actually a Perl script being run in Terminal which calls the osascript. However when run from Script Editor, it outputs the same message, hence why I’m posting the question here.
_______________________________________________
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