• 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: set volume from shell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set volume from shell


  • Subject: Re: set volume from shell
  • From: Ron Hunsinger <email@hidden>
  • Date: Thu, 26 May 2011 09:38:55 -0700


On May 26, 2011, at 9:00 AM, Ronald Hofmann wrote:
I got a problem with 'set volume 8'.

When using in AppleScript Editor it works great.

But when trying to use itlike this:
set theCMD to "osascript \"set volume 8\""
do shell script theCMD

I get this error:

You're missing the -e flag that tells osascript that you're passing an actual script, instead of the name of a script file.

Use:

set theCMD to "osascript -e \"set volume 8\""
do shell script theCMD

 _______________________________________________
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: set volume from shell
      • From: Christopher Stone <email@hidden>
References: 
 >Load Script (From: Luther Fuller <email@hidden>)
 >Re: Load Script (From: Stan Cleveland <email@hidden>)
 >Re: Load Script (From: Luther Fuller <email@hidden>)
 >Re: Load Script (From: Alex Zavatone <email@hidden>)
 >Re: Load Script (From: Luther Fuller <email@hidden>)
 >Re: Load Script (From: Ron Hunsinger <email@hidden>)
 >Re: Load Script (From: Luther Fuller <email@hidden>)
 >set volume from shell (From: Ronald Hofmann <email@hidden>)

  • Prev by Date: Re: tell app, name in string var
  • Next by Date: Re: tell app, name in string var
  • Previous by thread: Re: set volume from shell
  • Next by thread: Re: set volume from shell
  • Index(es):
    • Date
    • Thread