• 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: Changing screen resolution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing screen resolution


  • Subject: Re: Changing screen resolution
  • From: Roger Howard <email@hidden>
  • Date: Wed, 7 Jul 2004 15:29:49 -0700

On Jul 7, 2004, at 1:21 PM, Paul Thompson wrote:

Hi List,

I'm trying to write a script that will change the screen resolution and colours from what ever it is set to currently to 1024x640 and the colours to thousands. I am trying to run a program called Gravitation Ltd. 5.0 under classic in Panther. Admittedly, I am struggling with this due to my lack of ability with AppleScript. This is what I have so far:

tell application "System Preferences"
tell pane "displays"
set resolutions to "1024 x 640"
end tell
tell pane "displays"
set colors to "thousands"
end tell
end tell
open application "Gravitation Ltd. 5.0"

If I try to run it, it gives me an error of "System Preferences got an error: NSCannotCreateScriptCommandError" If I remove the part of the script where I try to change the colors to thousands, that error goes away, but it still doesn't execute the script successfully. My overall goal with this is to save it as an application so that the grade 1 to 3's will be able to launch this without having to do anything else with any preferences. If anyone out there might be able to suggest where I am going wrong, it would be greatly appreciated.

What display do you have that has a native resolution of 1024x640? Perhaps you're trying to switch to an unsupported rez... you sure you didn't mean 1024x768?

-R
_______________________________________________
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.


  • Follow-Ups:
    • Re: Changing screen resolution
      • From: Jeremy Reichman <email@hidden>
    • Re: Changing screen resolution
      • From: Paul Thompson <email@hidden>
References: 
 >Changing screen resolution (From: Paul Thompson <email@hidden>)

  • Prev by Date: Re: Characters in a file name - some progress
  • Next by Date: Re: Changing screen resolution
  • Previous by thread: Changing screen resolution
  • Next by thread: Re: Changing screen resolution
  • Index(es):
    • Date
    • Thread