A method of using Power PC OSXEN in an Intel environment
A method of using Power PC OSXEN in an Intel environment
- Subject: A method of using Power PC OSXEN in an Intel environment
- From: Walter Bushell <email@hidden>
- Date: Fri, 23 Mar 2007 10:00:30 -0400
Basically you create a stay open application with a handler that
calls the desired scripting addition and launch it before running
your script. This script must be compiled on as a PPC application
that is on a PPC machine or with Script Editor (or other) set to use
Rosette. Then you call the handler in the previously mentioned stay
open script.
For example here is a demo script which also shows limitations of
this method as it takes 17 millisec to run on a Core 2 Duo 2
GigaHertz macBook. MP Ticks gives resolution of 1/60 second and runs
native on Intel.
tell application "millitimer" to WSBmillisec()
set x to result
repeat 100 times
tell application "millitimer" to WSBmillisec()
end repeat
tell application "millitimer" to WSBmillisec()
set y to result
(y - x) / 100
-----------------Where millitimer is like so and must be compiled
with rossetta turned on or on a PPC machine.
on run
end run
to WSBmillisec()
return GetMillisec
end WSBmillisec
on idle
return 1000
end idle
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden