Re: Looking for Sound Preference magic
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