arunkumar:Hi Scripting_Ace
Thanks for ur reply.
can you explain steps involve before running the Script?
cheers
Arun
Hi Kumar and sorry for the delay,
When runnig under Intel, your Finder gives you the option of running Universal apps either natively or within the Rosetta emulator. Concurently, it will run ALL non-Intel native programs in Rosetta.
The problem here with scripting is that the back and forth "conversation" between App and Script does not like switching from INtel to Rosetta and vice-versa.
How can you fix this you ask?
If your target application only run under Rosetta (non Universall or Intel-only apps), you need to make sure that your Script Editor (if you are running your script form there) or Script saved as app runs under Rosetta as well. To do that:
- Select its icon in Finder
- Get Info
- Check the box that says "Open using Rosetta".
- Next time that application is launched, it will run in emulation mode.
Now if you do script a lot and don't want to have to do this everytime. Make a duplicate of your Script Editor application and append "(Intel)" and "(Rosetta)" at the end of each name. Get info on the "(Rosetta)" one and check the "Run under Rosetta". Then use the appropriate "flavor" wehn scripting different apps.
HTH