• 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: Graff <email@hidden>
  • Date: Sun, 11 Apr 2004 13:19:19 -0400

I believe what you are looking for is:

---------
tell application "System Preferences"
activate
end tell

tell application "System Events"
tell process "System Preferences"
set frontmost to true
delay 2
keystroke "h" using {option down, command down} -- hide others
display dialog "should stop here"
end tell
end tell
---------

You need to make the modifiers a list and then they will all get used. Using a slash between them causes AppleScript to try to do division, something that does not work at all.

- Ken

On Apr 11, 2004, at 11:38 AM, Robert Poland wrote:

When I run the following (or many variations of it) I get an error "Can't make option down into a real."

tell application "System Events"
tell process "System Preferences"
run
set frontmost to true
delay 2
keystroke "h" using option down / command down -- hide others
display dialog "should stop here"
end tell
end tell
_______________________________________________
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: 
 >can't make option down into a real (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Just submitted this to BugReporter as feature request - comments...
  • Next by Date: Re: how to eject a firewire drive natively
  • 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