Article View: adobe.scripting.indesign
Article #9706How to remove file extension (JS).
From: John_Kordas
Date: Fri, 21 Jul 2006 02:24
Date: Fri, 21 Jul 2006 02:24
6 lines
980 bytes
980 bytes
The following script will create an alert with the name of the file within the document. For example, image.eps. Is there a way to flag the name but hide the extension? The result being just image, using CS2. var myLink = app.documents[0].links[0]; alert (myLink.name) Regards, John.
Technical Details
Message-ID:
<3bc0fcd1.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.ispa.de!news.ecp.fr!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,57f2b6c9b4d01529,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: John_Kordas@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: How to remove file extension (JS). Message-ID: <3bc0fcd1.-1@webcrossing.la2eafNXanI> Date: Thu, 20 Jul 2006 19:24:59 -0700 Lines: 8 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.ispa.de!news.ecp.fr!news.stben.net!webcrossing