Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A method of using Power PC OSXEN in an Intel environment



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: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.