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

Changing screen resolution


  • Subject: Changing screen resolution
  • From: Paul Thompson <email@hidden>
  • Date: Wed, 7 Jul 2004 16:21:53 -0400

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.

Thank you in advance.

Paul
_______________________________________________
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: Roger Howard <email@hidden>
  • Prev by Date: Re: How to return error message text from do shell script
  • Next by Date: Re: Characters in a file name - some progress
  • Previous by thread: Re: Sorting a list of Lists
  • Next by thread: Re: Changing screen resolution
  • Index(es):
    • Date
    • Thread