• 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
A method of using Power PC OSXEN in an Intel environment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Puzzling display dialog
  • Next by Date: Re: Two quick questions
  • Previous by thread: Re: Puzzling display dialog
  • Next by thread: Re: A method of using Power PC OSXEN in an Intel environment
  • Index(es):
    • Date
    • Thread