• 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: Looking for Sound Preference magic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for Sound Preference magic


  • Subject: Re: Looking for Sound Preference magic
  • From: Takaaki Naganoya <email@hidden>
  • Date: Tue, 28 Nov 2017 11:46:29 +0900

Hi Chris,

This code is a kind of disposable-level script not to worthy to be commented
with wasting your time :-).

Of course, “quoted form of” is our important friend to prepare posix path.
But Cocoa path functions does not require “quoted form of”….


> 2017/11/28 4:00、Christopher Stone <email@hidden>のメール:
>
> On 11/27/2017, at 02:02, Takaaki Naganoya <email@hidden> wrote:
>> Try this … do shell script "open /System/Library/CoreServices/Menu\\
>> Extras/Volume.menu"
>
> Hey Takaaki,
>
> The leaning-toothpicks method?  :)
>
> set quotedPath to quoted form of "/System/Library/CoreServices/Menu
> Extras/Volume.menu"
> do shell script "open " & quotedPath
>
> The one-liner:
>
> do shell script "open " & quoted form of "/System/Library/CoreServices/Menu
> Extras/Volume.menu"
>
> The folded one-liner:
>
> do shell script "open " & ¬
>     quoted form of "/System/Library/CoreServices/Menu Extras/Volume.menu"
>
> The readable, debuggable version:
>
> set shCMD to "
> open '/System/Library/CoreServices/Menu Extras/Volume.menu'
> "
> do shell script shCMD
>
> --
> Take Care,
> Chris
>
>
> _______________________________________________
> 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

--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/



 _______________________________________________
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

References: 
 >Looking for Sound Preference magic (From: Robert Poland <email@hidden>)
 >Re: Looking for Sound Preference magic (From: Takaaki Naganoya <email@hidden>)
 >Re: Looking for Sound Preference magic (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Looking for Sound Preference magic
  • Next by Date: How do I catch href tel web link to dial a phone number?
  • Previous by thread: Re: Looking for Sound Preference magic
  • Next by thread: How do I catch href tel web link to dial a phone number?
  • Index(es):
    • Date
    • Thread