Re: Unwanted output
Re: Unwanted output
- Subject: Re: Unwanted output
- From: Steve Mills <email@hidden>
- Date: Wed, 24 Aug 2016 12:11:53 -0500
On Aug 24, 2016, at 12:00:26, debt <email@hidden> wrote:
>
> 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');
You should've said that in the first place. If you want to ignore output from any shell command, route it to /dev/null:
osascript 'return 123' > /dev/null
I have no idea how you'd do that with the system command you're using.
> Side question: why does it print "text document 1” instead of the name of the file being explicitly opened?
Like I said before, that's the result of the open command. It returns the object that was created.
--
Steve Mills
Drummer, Mac geek
_______________________________________________
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