Page 1 of 1

PC/Mac compatibility

Posted: April 10th, 2012, 5:40 pm
by ernpchan
I have a script that I made that works on all our PCs but it doesn't work on a Mac. Is there a list or resource that I can reference to make my script cross compatible?

Right my script is breaking at

Code: Select all

var submitImage = ScriptUI.newImage( File('//blah/blah/blah.png'),  undefined, undefined,File('//blah/blah/blah.png') );
Where //blah/blah/blah is a network path to a file.

Re: PC/Mac compatibility

Posted: April 11th, 2012, 3:31 pm
by ernpchan
I get this error message.

"Unable to execute script at line 9. uncaught exception newImage"

Anyone know why that is?

Re: PC/Mac compatibility

Posted: April 11th, 2012, 4:53 pm
by Dan Ebberts
Just a shot in the dark--on the Mac, do you have the preference set that allows scripts to access the network?

Dan

Re: PC/Mac compatibility

Posted: April 11th, 2012, 5:37 pm
by ernpchan
Dan Ebberts wrote:Just a shot in the dark--on the Mac, do you have the preference set that allows scripts to access the network?

Dan
Hi Dan,

That was one of the first things I checked. The user didn't have it enabled at first but after enabling it he still gets the same error message. One of my guys thought the word "new" was the problem so I swapped it out for "temp" and the Mac user got this message.

"Unable to execute script at line 9. Function ScriptUI.tempImage is undefined"

So for now I switched it back to "new".