Photoshop export script still doesn't work for me...:(

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Patmals
Posts: 551
Joined: Tue Aug 08, 2006 7:19 am
Location: Nagoya-shi, Japan

Photoshop export script still doesn't work for me...:(

Post by Patmals »

HI guys,

I was having trouble with the PS to Moho script previously but the PS to AS script is giving me the same error..

if i edit the script (2 lines), it seems to work but i am not sure if i am missing anything in the export by deleting those 2 lines
User avatar
Lost Marble
Site Admin
Posts: 2347
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

Which version of Photoshop? What's the error? Which two lines did you delete?
Patmals
Posts: 551
Joined: Tue Aug 08, 2006 7:19 am
Location: Nagoya-shi, Japan

Post by Patmals »

Hi LM,

I'm using Photoshop CS.

when i try the script, it brings up the error box

"Error 8: Syntax error.
Line 4
-> #target photoshop"

If i delete the lines:

#target photoshop

and

app.bringToFront();

it "seems" to work

am i missing something by removing those lines?

Thanks!
User avatar
Lost Marble
Site Admin
Posts: 2347
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

No, removing those lines shouldn't be a problem. I'm kind of surprised they caused a problem to begin with, but if it seems to work fine without them, everything should be OK.
Patmals
Posts: 551
Joined: Tue Aug 08, 2006 7:19 am
Location: Nagoya-shi, Japan

Post by Patmals »

Lost Marble wrote:No, removing those lines shouldn't be a problem. I'm kind of surprised they caused a problem to begin with, but if it seems to work fine without them, everything should be OK.
Thank you! I can breath again :)
Patmals
Posts: 551
Joined: Tue Aug 08, 2006 7:19 am
Location: Nagoya-shi, Japan

Post by Patmals »

Hi Mike (again)

Sorry but i tried it again and now i am getting this error message:

"
Could not open file.

Error details:

read error in line 6. In code c:\Documents and Settings\Mike Clifton\My Documents\Develop\lm_tree\lib_moho\mohodoc.cpp, line229.
"

I tried the older script for moho but still it would import files..

Another user reported this error in the report bugs forum.. he has the same version of photoshop so i pointed him to this thread.
User avatar
relik
Posts: 34
Joined: Wed Sep 13, 2006 3:52 pm
Location: Houston, TX, USA
Contact:

Possible FIX

Post by relik »

See here for details. Photoshop CS doesn't support the script commands to convert measurements to pixels. It appears to be a CS2 addition to the javascript.

http://www.lostmarble.com/forum/viewtop ... 9075#29075

Waiting on mod to tell me if I can upload the fixed code since it was shipped with the app.-R
Patmals
Posts: 551
Joined: Tue Aug 08, 2006 7:19 am
Location: Nagoya-shi, Japan

Post by Patmals »

Thank you Relik!

I replied to your other similar reply in another post.
User avatar
Mikdog
Posts: 1901
Joined: Tue Jul 05, 2005 3:51 pm
Location: South Africa
Contact:

Post by Mikdog »

where is this script?
Post Reply