I have just written a script to convert some XML files.
It read the data between 2 tags which look like this:
1234.5 6789.1 1.23
This works perfectly on an English version of OSX using
repeat with stringumber in stringnumbers
set numberlist to numberlist & (stringnumber as number)
end repeat
but not on any other localization of OS X but if I change the middle line to
set numberlist to numberlist & (stringnumber as string)
it works perfectly on ALL versions of OS X
I think I understand why but I’d like someone with more knowledge just to confirm it for me.
The other problem I am having is I have used a progress bar (that I found on this site) in my script. it is found in contents>resources>scripts>progress>progress.app
On my machine this works perfect and on others it seem’s to work fine aswell but some peoples machines just say “cannot find progress.app”
If they show the package contents and navigate to the file and add the .app extension it seem’s to work but it seem’s a little odd that they would have to do this.
does anyone have any idea why?
My code for finding the progress.app is as follows:
set )mepath to path to me as string
set Progress to load script alias (_mepath & "contents:resources:scripts:progress:progress.scpt")
It is actually progress.scpt that calls progress.app but I don’t see why this should make a difference
Dave