Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Get name of the folder after parent.

$
0
0

Hi forum.

 

I need a great help from you.

 

If I could get the name of the folder which is between the Desktop and the indesign files where it ls saved...

 

eg.

 

/Users/wleastudio/Desktop/rantac/acb.indd.

I need to get the folder name highlited in red and alert...

 

 

 

if this is straight away on desktop i can do alert easily like below..

 

name = Folder("/Users/wleastudio/Desktop/");

if(app.activeDocument.filePath == name.path+"/" + name.name) {

    alert ("The document is in Desktop"), exit;

    }

 

if, the document is saved inside a folder on a desktop, that's the problem, i'm finding to difficult to find folder name and get alert..

/Users/wleastudio/Desktop/rantac/acb.indd.

 

Many thanks in advance


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>