libreliodev / photoshop

Photoshop Scripts For The Librelio Publishing Suite
2 stars 2 forks source link

No way to export from InDesign using the export script #1

Closed libreliodev closed 10 years ago

libreliodev commented 10 years ago

In CC14 on Mac, the script only offers the choice to open an existing folder or create a new one, but it's not possible to select a folder

screen shot 2014-10-24 at 09 22 35

libreliodev commented 10 years ago

@signilance The 2nd version does not work either. And I think the code and the interface are too complicated. Isn't there a simpler way?

screen shot 2014-10-24 at 18 04 17

signilance commented 10 years ago

That alert is coded; it is not a code error. That should appear when you use forbidden characters for naming a file (like [:] [/] and so on). Please use a simple name and test again. The first version aimed a simpler interface (both the name and the path were set in one step) but I understand it doesn't work on your MacOS. What exactly should I take off from that interface?

signilance commented 10 years ago

By the way: it seems from your screen capture that you run the script in the ExtendScript engine. You should do it in InDesign's. Or run the script directly from InDesign's scripts panel.

signilance commented 10 years ago

…or you can use the new version I've just edited and run it as you already did.

libreliodev commented 10 years ago

@signilance

That alert is coded; it is not a code error. That should appear when you use forbidden characters for naming a file (like [:] [/] and so on). Please use a simple name and test again.

The name was "test".

The first version aimed a simpler interface (both the name and the path were set in one step) but I understand it doesn't work on your MacOS. What exactly should I take off from that interface?

The interface of the first version was OK

libreliodev commented 10 years ago

@signilance

…or you can use the new version I've just edited and run it as you already did.

Done, but bug is still present.

screen shot 2014-10-24 at 18 04 17

signilance commented 10 years ago

You are using the same code as before. Please use the one that starts with "#target indesign". (The new print screen is identical with the previous one. Check the line numbers.)

libreliodev commented 10 years ago

@signilance

You are using the same code as before

Sorry, I did not realize you had created a new file. You should not do this on Github. The system keeps track of all versions.

By the way, the new version does not run at all with my CC14 version, whereas the previous one did run until the error message.

screen shot 2014-10-24 at 18 42 23

libreliodev commented 10 years ago

@signilance

This code seems to work well for me. You can probably mix it with the first version of your code to get something fine

            var topFolder = Folder.selectDialog ("Choose Export Folder...");
            if(topFolder === null){

            }else{
            alert(" parent Folder" + topFolder.path);

            alert("full path" + topFolder.fsName);

            }
signilance commented 10 years ago

Is there a way to streamline this conversation (your phone number and maybe a TeamViewer session)?

The script is made for InDesign so it cannot run if InDesign is closed. Maybe you have several versions (CC and CS6). It seems that you have choosen CS6's engine and I assume your document is open in CC. Choose CC or run it directly from InDesign.

I do have an idea to simplify the script; I'll send it over right away. But first I want to see this is working. It is quite frustrating to see the code running on my side and you getting only problems.

libreliodev commented 10 years ago

Is there a way to streamline this conversation (your phone number and maybe a TeamViewer session)?

Sorry, I work with quite a few developers, but not via phone or TeamViewer. It's too time consuming.

The script is made for InDesign so it cannot run if InDesign is closed. Maybe you have several versions (CC and CS6). It seems that you have choosen CS6's engine and I assume your document is open in CC. Choose CC or run it directly from InDesign.

Other scripts work well, sorry.

I do have an idea to simplify the script; I'll send it over right away. But first I want to see this is working. It is quite frustrating to see the code running on my side and you getting only problems.

Like I said, go back to the first version, please, and have it work as it should.

signilance commented 10 years ago

I uploaded a new version via Freelancer chat. I am not sure where to upload it here.

Please select the correct version of InDesign in the ExtendScript's engine dropdown in order to have those scripts working. Or run the script from InDesign's "Scripts" palette.