PC/Mac compatibility

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
ernpchan
Posts: 56
Joined: February 8th, 2010, 11:27 pm

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.
ernpchan
Posts: 56
Joined: February 8th, 2010, 11:27 pm

I get this error message.

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

Anyone know why that is?
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

Just a shot in the dark--on the Mac, do you have the preference set that allows scripts to access the network?

Dan
ernpchan
Posts: 56
Joined: February 8th, 2010, 11:27 pm

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".
Post Reply