Re: calling a Classic osax from X
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.