• 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: can't make option down into a real
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't make option down into a real


  • Subject: Re: can't make option down into a real
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 11 Apr 2004 10:30:26 -0700

On 4/11/04 10:02 AM, "Robert Poland" <email@hidden> wrote:

>>> keystroke "h" using option down / command down -- hide others
>>
>> It's trying to divide option down by command down. Is that what you meant?
>>
>> Kim Holburn
>
> Per the example in the System Events dictionary I'm trying to do the
> command Keystroke "h" using the command key AND the option key.

That's not an example: that's how enumerations (specific constants available
as values) are listed in the dictionary - using the forward slash. YIt
basically means here "alternate values", NOT "combined values". You can't
use the forward slash in your script - there it means "divided by" as Robert
says. What the dictionary does not say - a bug - is that you can use the
'using' parameter with a list to combine values;


keystroke "h" using {option down, command downn}

You also don't need to tell a process to run - if it's open it's already
running, if it's not open you can't tell it anythng because there's no such
process. I think you want:



tell application "System Preferences" to activate

tell application "System Events"
tell application process "System Preferences"
keystroke "h" using {option down, command down}
end tell
end tell



That works.

--
Paul Berkowitz

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: can't make option down into a real (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: how to eject a firewire drive natively
  • Next by Date: Re: can't make option down into a real
  • Previous by thread: Re: can't make option down into a real
  • Next by thread: Re: can't make option down into a real
  • Index(es):
    • Date
    • Thread