Skip to main content
Alexandre Becquet
Community Expert
Community Expert
January 17, 2022
Question

Is it possible to use # or [ in the filename generated by a script.

  • January 17, 2022
  • 3 replies
  • 226 views

Hello everyone. Being completely new in the world of scripting for Indesign I have a question and in my opinion it will not be the last!!! as in the topic of this post : Is it possible to use # or [ in the filename generated by a script.

 

It's a script made by an other guy and the client ask me if it's possible. I'm not really sure it's possible to ad # or [ in the filename generated by a script with a good export.


thank you

This topic has been closed for replies.

3 replies

Community Expert
January 18, 2022

Hi Alexandre,

didn't we have an issue discussed lately here in the forum where an InDesign document's file name was the cause for an issue with hyperlinks to external page destinations in other InDesign documents?

 

Ah yes, see:

 

Issue with creating Hyperlink to another indd document
N.Coward, Jan 14, 2022
https://community.adobe.com/t5/indesign-discussions/issue-with-creating-hyperlink-to-another-indd-document/td-p/12660398

 

Quoting the OP from that thread:

 

"Looks like I have figured it out with..

My content page started with a hyphen ' - ' at the beginning of the file name. Removing that now lets me pick it as a document and link too and strangely now all the others ones work too."

 

Did not test this, but it seems one can run into issues with a hyphen at the start of a document's name.

So yes, I would avoid # and brackets in a file name.

 

Regards,
Uwe Laubender

( ACP )

Legend
January 18, 2022

If relevant, you can't use # in the name of a file on a web site. (This is a limitation of web sites, not InDesign).

Peter Kahrel
Community Expert
Community Expert
January 17, 2022

Yes, you can. But my gut feeling is that avoid brackets are best avoided. No good argument for it though.

P.

 

 

Alexandre Becquet
Community Expert
Community Expert
January 18, 2022

Thank you @Peter Kahrel  That's what I thought but I prefer to tell my client to avoid this nomenclature with # and [ for a good execution of the script and to avoid errors.