AppleScript Applications do not work across different Computers

Hi.  I create an AppleScript using Script Editor.  Here is the script:

tell application "Mozilla"
openURL "http://www.yahoo.com"
end tell

I save the script as an application.
I have a java application call this script by name.  Then have this script open the browser to that URL.
What happens is that it works on the computer that I created the script on (MAC OS 10.2.2) but when I copy everything onto another Mac (same OS), the java application cannot run the script (no error, just nothing happens, like the script cannot be found).

Is there a bug with the script editor, or am I going at this all wrong?  I'm new to AppleScript and new to Macs in general.  Please help me.  Thanks so much in advance.
abbeyjayeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

weedCommented:
They're probably using a beta of Mozilla. Mozilla 1.3b doesn't have an applescript dictionary yet, but 1.2.1 does. You're probably testing with 1.2.1, and deploying to users who are using 1.3b.
0
abbeyjayeAuthor Commented:
I'm testing with 1.1 and have not had any "users" of this application yet.. still in testing phase. I am simply creating an installer of the application bundled with Mozilla, the Applescript, and my application.  Any other thoughts?
0
weedCommented:
The applescript dictionaries still vary between versions. You should probably be testing with 1.2.1 in any case.
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

abbeyjayeAuthor Commented:
The AppleScript dictionary for Mozilla 1.1 does support my script.  I am bundling my end-product with Mozilla 1.1 (I find 1.1 to be the most stable release for javascript).  Anything else??? :o\
0
weedCommented:
You may be bundling Mozilla 1.1 for javascript reasons but 1.2.1 has many other advantages. It's such a young product that every point release means big improvements. People arent going to want to suffer with 1.1's problems. I'm even using 1.3b just for the advantages.

When you transfer the whole batch to a different machine, where are you putting it? The users home directory?
0
abbeyjayeAuthor Commented:
Onto the user's home directory.
0
weedCommented:
Your script should work as long as Mozilla resides within the Applications folder, not the users home directory. You may have to redo the script accordingly.
0
abbeyjayeAuthor Commented:
The script is installed in the same folder as the application and Mozilla.  The script works alone but when I call the script from my application, even though the name hasn't changed, it doesn't seem to open the script once I am not on the computer that I originally created the script on.
0
abbeyjayeAuthor Commented:
Do you know of any bugs related to AppleScipt or Script Editor?
0
weedCommented:
Im thinking its not opening the script because the path to the script is different. On YOUR computer the path is /Users/username/script.scpt. On someone elses machine its /Users/differentusername/script.scpt
0
abbeyjayeAuthor Commented:
Even though I don't specify a path when I call it, because it is in the same folder?  (Thanks for all your correspondance, by the way!)
0
weedCommented:
Yep. So, stick to having all your apps/scripts in places that will be the same across all machines.
0
abbeyjayeAuthor Commented:
Like.....?
0
weedCommented:
Like the Applications folder.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
abbeyjayeAuthor Commented:
That is where it is located.  But what if the Hard Drive is different?
0
abbeyjayeAuthor Commented:
Thanks for all your communications.
0
weedCommented:
The HD name shouldnt matter. It'll still be the root directory of the boot drive.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apple Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.