• 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: calling a Classic osax from X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calling a Classic osax from X


  • Subject: Re: calling a Classic osax from X
  • From: Jon Pugh <email@hidden>
  • Date: Tue, 22 Apr 2003 23:29:22 -0700

At 2:39 PM +1000 4/23/03, Shane Stanley wrote:
>tell application "Stay open"
> using terms from application "Macintosh HD:System Folder:Scripting
>Additions:Jon9s Commands"
> screen list
> end using terms from
>end tell
>
>The catch is that the path to the OSAX must be there directly at compile
>time -- you can't use a variable.

OK, I got it to work by increasing the size of my applet's memory partition. Apparently 500K wasn't enough and it horked while compiling.

So my test script is now:

tell application "Classic Applet"
set sc to screen list
set mainScreen to item 1 of sc
set msid to screen id of mainScreen
set msri to resolution index of mainScreen
try
using terms from application "Magneto:System Folder:Scripting Additions:Jon's Commands"
set screens to {screen id:msid, screen size:{640, 480}}
end using terms from
on error number -50
end try
beep
try
using terms from application "Magneto:System Folder:Scripting Additions:Jon's Commands"
set screens to {screen id:msid, resolution index:msri}
end using terms from
on error number -50
end try
end tell

What fun. Does this help, Matt?

Jon
_______________________________________________
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: calling a Classic osax from X
      • From: Ray Robertson <email@hidden>
References: 
 >Re: calling a Classic osax from X (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Scripting-system error
  • Next by Date: Re: URL Access Scripting
  • Previous by thread: Re: calling a Classic osax from X
  • Next by thread: Re: calling a Classic osax from X
  • Index(es):
    • Date
    • Thread