Gallery action - get a Javascript alert

I had been using Gallery Lite successfully but when I use Gallery it lets me do all the settings but when I press “Process Gallery” I get an alert saying Javascript Error -2741 Expected end of line, etc. but found identifier. Help please!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Paul will have the ultimate say, but I ran into similar trouble when using Applescript to process files in some of my Actions.

Question: The alert is in an small, unfamiliar box; instead of the standard alert with a FW icon, this alert is pretty plain, with just text and no graphic?

I would guess that some of your image filenames have some borderline characters in them. Don’t get me wrong, they are completely kosher for filenames in Finder. However, since a lot of times the Action language must call out to applescript, a completely different environment, things like " (quotes) especially and other symbol-type characters (~!@#$%^&*()) in filenames tend to not translate well when these two languages ‘talk’ with each other. I know I had to add some regex loops to my Action code to ‘fix’ filenames that might break like this.

Until you hear from Paul, I might be worthwhile to at least look at the filenames of the images and see if any of them contain any ‘symbols’. As mentioned, the " (quote), both single or double is probably the main culprit here.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi,
as Weaver says, check your file names of the images used. It’s possible that you have a " or a ’ in one somewhere.

The error box you are seeing sounds like an “AppleScript being called by JavaScript” box which don’t look like your regualr FReeway error windows.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It is not a FW icon in the alert box. I have checked the file names and they seem OK. I have just called them a.jpeg through to h.jpeg (8 files). I re-wrote the names in case I had missed anything but I still get the alert.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Are the images colour or black and white? If they are not using the RGB colour space (ie they are greyscale images or CMYK), there can be some oddness that takes place.

If not, can you send me a couple of the images for me to look at? Thanks.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 30 Jan 2008, at 16:24, ANDREA wrote:

It is not a FW icon in the alert box. I have checked the file names
and they seem OK. I have just called them a.jpeg through to h.jpeg
(8 files). I re-wrote the names in case I had missed anything but I
still get the alert.

I haven’t been following this thread but if you renamed the files
manually, could it be a discrepancy between JPEG and JPG?

best wishes

Paul Bradforth

http://www.paulbradforth.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

They were jpg, JPEG and Jpeg which is why I re-titled them all to the same suffix. They are the same photos that had worked perfectly with Gallery Lite (Could it be something I did wrong installing Gallery?). Will email them to you Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options