• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unwanted output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Unwanted output
      • From: Christopher Stone <email@hidden>
    • Re: Unwanted output
      • From: Steve Mills <email@hidden>
References: 
 >Unwanted output (From: debt <email@hidden>)
 >Re: Unwanted output (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Unwanted output
  • Next by Date: Re: Unwanted output
  • Previous by thread: Re: Unwanted output
  • Next by thread: Re: Unwanted output
  • Index(es):
    • Date
    • Thread