Get name of the folder after parent.

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

Hi,
Many many apologies for the delayed reponses...
Your help support me a lot!!!.. but,
try {
if(app.activeDocument.filePath.parent.parent.parent.parent.parent.pare nt.name =="Desktop") {
    alert ("Correct Location " + app.activeDocument.filePath);
else {
alert("the Job is wrong Location"  +"\r" +"currently here it is" + app.activeDocument.filePath)
}} catch (e) {}
When the parent folder name is mentioned" the script catches and alerts.
if the "indesign doc" is not in the parent folder. i.e. it may be inside the folder on the desktop or download folder of some other folder...
The alert says"null folder" not found.
Many thanks

Similar Messages

  • After upgrading my 3gs to ios5, I get 2 copies of pictures synced from my computer, 1 in the Photo Library and another in a library with the same name as the folder I put the pictures in to put on the phone. Any ideas why?

       When syncing pictures from my computer to my I-Phone I get 2 copies of the pictures, 1 in the Photo Library and another in a library with the same name as the folder I put pictures in to put on the phone. This started after I upgraded to ios5. I have tried re-installing I-Tunes. I have not reset the phone. My main concern is the amount of memory pictures take up on the phone. It's not a problem now but could be in the future. Any Ideas on why this happening?

    It has always been this way.  it was never different.  This is how the iphone handles photos - always has.
    There are NOT two copies,  There are simply two ways to access the very same photos.  All synced photos will ALWAYS be under Photo Library ( you can look at all photos at once this way or do a slideshow of all photos).  Those very same photos can also be accessed from the individual folders so you can show or slideshow just that folder.
    Just as a book can be in the library and in the fiction section, there is only one book/photo.

  • Moving mail to folders - is it possible to type the name of the folder, vs scrolling?

    Apologies in advance if there is already an answer to this question in the forums; I searched with every combination of the subject I could think of...
    Context: my iPhone 4 syncs with an IMAP mail server.  I have lots of folders on the server, and I can see all of them on the iPhone.  I know how to use the "file" button at the bottom of an email, to move the message to a folder.
    Question: is there a way to "open" the keyboard during the filing process, so that I can type the name of the folder, rather than scrolling through the folders?
    Thanks for your help.

    It also works  with google mail.
    For someone looking for help you sure have a funny way about you. Trying to narrow down where and under what circumstances a problem occurs is called troubleshooting. Showing that mail's imap works with gmail and google should al least give you pause to reconsider your out and out assertion that the problem has to be solely with mail and perhaps lead you to look at the possibility of an issue with the interaction between mail and godaddy. Just because someone who answers the phone at godaddy says the problem has to be in mail don't make it so.
    You know were all just users here, no one is getting paid. Those of us who try and help users like yourself are doing it to give something back to the community. You don't like my help, fine don't take it but check the attitude at the door.
    Hope you get your problem fixed.

  • I am not able to get name of the person when he is calling for which i have already saved the no. on my contact list i have reseted my phone twice help me out

    hello i have started using iphone 5 for which i downloaded my contacts from i clouds i am not able to get name of the person when he is calling for which i have already saved the no. on my contact list i have reseted my phone twice  its only showing the names of the person whose no. i have saved it with the country code i am staying in india new delhi pls help me i am fed up not able to get the name of person who is calling

    Sir, your Apple ID can be used as an iCloud account as well. They are both the same thing.
    You can learn more from --> Set up your Apple ID for iCloud and iTunes - Apple Support

  • Updated my iPhone 5 to ios7, in the App store after installing updates I now have a never ending list of the Apps I've updated.  How do I get rid of the list after they've been updated?  In the previous version I did not have an annoying permanent list.

    Updated my iPhone 5 to ios7, in the App store after installing updates I now have a never ending list of the Apps I've updated.  How do I get rid of the list after they've been updated?  In the previous version I did not have an annoying permanent list.

    iOS 7 allows you to have your apps update automatically. Therefore, the list of what has been updated stays so that you can see what was updated, when and what the release notes say. It has been suggested that they list has a limit, much like Recents. Currently, there is no way for the user to delete the entries manually. Just try not to look at them.

  • How can I find out the name of the folder my java program is in?

    Hi, I'm trying to make a little utitlity that makes a bunch of url shortcuts based on the name of the folder I run the java from.
    i.e.
    I have my executable jar in C:/Someplace/My Folder Name/
    I'd like to be able to double click on the jar and it creates the url shortcuts for me using "My Folder Name" as a parameter.
    I've done the shortcuts bit but can't figure out (=find a tut) how to read the folder name.
    Thanks to anyone who can help!

    import java.io.*;
    import java.net.*;
    import java.security.*;
    public class Attempt {
        public static void main(String[] args) throws IOException {
            System.out.println(new Attempt().getFolder());
        public File getFolder() throws IOException {
            ProtectionDomain domain = getClass().getProtectionDomain();
            CodeSource source = domain.getCodeSource();
            URL url = source.getLocation();
            if (!"file".equals(url.getProtocol())){
                throw new IOException("Code source location not a file:" + url);
            String path = url.getPath();
            //remove xxx.jar from path:
            return new File(path.substring(0, path.lastIndexOf('/')));
    }

  • HT201441 i have bought a second hand iphone 4s which is stilllinked to previous owners itunes ID.I cant get his details off him as he has his money and is blanking me. I can't get anything on the phone after setting up the language.HELP!!

    I cannot activatea second hand iphone 4s as i don't have previous owners itunes ID. I can't get anything on the phone after setting the language as its asking for activation. Please can anyone help ???? Ideally i would like to get it back to factory settings and start afresh but right now i would settle for anything. Should say i only have the phone and charger, no box so no details

    Unfortunately, the only one who can help is the previous owner.  Otherwise you will not be able to activate and use the phone.  Apple can't/won't help you with this either.

  • Is it possible to change the name of the characteristic after the PA is act

    Is it possible to change the name of the characteristic after the PA is activated?
    If yes what should I do?

    Hi,
    yes its possible and it works in the same way as the creation of a new characteristic / assigment to an up- and running operating concern.
    Thats because the "name" of a characteristic is not stored in a text table but it is the field label of the data element.
    Search in the SDN forum if you are unsure how to do that.
    Best regards, Christian

  • What is the default name of the folder where the cache (i.e. Firefox's temporary internet files) is stored?

    What is the default name of the folder where the cache (i.e. Firefox's temporary internet files) is stored? Basically, what folder is Firefox's equivalent of Temporary Internet Files?

    You can find the location of the cache on the about:cache page (open that page via the location bar like a website).
    Only large image and media files are stored as individual files on disk.<br />
    Other files are stored in a few large container files (_CACHE_XXX_) in the cache folder and not as separate files on disk.<br />
    The individual files on disk have random names without a file extension for security reasons: you can't open an application or start a downloaded virus inadvertently by clicking a file in the cache folder.<br />
    You can look at this extension for easier access to files in the cache.
    * Cache Viewer: https://addons.mozilla.org/firefox/addon/2489

  • Does any know what is the name of the folder where iTunes saves the iCloud cache like the songs being played, etc.?

    Does any know what is the name of the folder where iTunes saves the iCloud cache like the songs being played, etc.?

    Checked:
    when you add a song to iTunes, that song is copied to the itunes library folder (on your external drive) with all your other songs, so they are all in the same place, on that drive. you can then delete the song you added to itunes from wherever you added it, because it has been copied to the itunes folder.
    Unchecked:
    the song is not copied to the itunes folder on the external drive. this means that once you add it to itunes, you must keep the song wherever you added it from, because itunes only remembers where it is located, and does not keep a copy in the itunes folder. moving this file will make the song unplayable in itunes.

  • Can't get rid of the folder and exclamation mark!

    Hi all,
    Hope one of you can help. I have just returned home after a month away working and went to listen to some music on my ipod but found that the charge had gone. I plugged my ipod into my laptop and left the ipod to charge for a few hours, one thing i did notice was my laptop didn't and hasn't recognised my Ipod i.e opened up Itunes when connect up to the USB port since letting my battery go flat,other noticeable things are my conputer only comes up as E drive when connected not Apple Ipod as usual however when i hit remove hardware on the toolbar of my laptop it identifies the Ipod. I have tried the 5 r's and have had no luck with any of them and i still have the folder with a exclamation mark. One thing to note is when i try to run Ipod updator it comes up with a message no dock station found but it shows my serial number of the ipod when i first connect but comes up with this message when i try to restore. I am at my wits end now i have tried diagnostics and everything looks ok no faults flagged.
    Can any of you genius out there help please?
    Regards
    Woody

    Windows users having trouble with their iPods should locate a Mac user. In many cases when an iPod won't show up on a PC that it will show up on the Mac. Then it can be restored. When the PC user returns to his computer the iPod will be recognized by the PC, reformatted for the PC, and usable again. By the way, it works in reverse too. A Mac user often can get his iPod back by connecting it to a PC and restoring it.
    Tips
    a. It does not matter whether the format is completed or not, the key is to erase (or partly) the corrupted firmware files on the Hard Drive of the iPod. After that, when the iPod re-connected with a computer, it will be recognized as an fresh external hard drive, it will show up on the iTunes 7.
    b. It is not a difficult issue for a Mac user to find a window base computer, for a PC user, if they can’t find any Mac user, they can go to a nearest Apple Shop for a favor.
    c. You may need to switch around the PC and Mac, try to do several attempts between “Format” and “Restore”

  • Can't get rid of the folder and exclamation mark icon

    i got given a new ipod nano (1st generation) to replace my old ipod mini, i installed the new software but got the folder and exclamation mark icon, i removed all itunes and quicktime software just in case it had anything to do with an old version of something and reinstalled the software...still got the icon. then i installed the updater from the website but still can't get rid of the icon...any advice? please help!
    ipod nano (first generation)   Windows XP  

    Windows users having trouble with their iPods should locate a Mac user. In many cases when an iPod won't show up on a PC that it will show up on the Mac. Then it can be restored. When the PC user returns to his computer the iPod will be recognized by the PC, reformatted for the PC, and usable again. By the way, it works in reverse too. A Mac user often can get his iPod back by connecting it to a PC and restoring it.
    Tips
    a. It does not matter whether the format is completed or not, the key is to erase (or partly) the corrupted firmware files on the Hard Drive of the iPod. After that, when the iPod re-connected with a computer, it will be recognized as an fresh external hard drive, it will show up on the iTunes 7.
    b. It is not a difficult issue for a Mac user to find a window base computer, for a PC user, if they can’t find any Mac user, they can go to a nearest Apple Shop for a favor.
    c. You may need to switch around the PC and Mac, try to do several attempts between “Format” and “Restore”

  • How to get names in the phonebook transferred to Car device?

    Hi,
    I am using BB 8900 and Fiat Linea car with Blue & Me technology. After copying the phone book from the BB hand held to the car device, the car phone book only displays the numbers without names, which is practically useless. Because of this, I am unable to utilize the expensive feature in my car to the full, though I can receive calls and dial from the handheld and then continue conversation through car device. My another handheld Nokia model, costing 1/4th of BB 8900 works perfectly well with the car device. Kindly help with information on how to get the names in the address book of BB handheld transferred to the car device. Thanks and Regards - Ram Bhat

    Hi, I did not get help but I succeeded in transferring the names in the address book of my BlackBerry. I am sharing how I did it for the benefite of others -
    1. The automatic pairing by blue & me does not transfer the names!!
    2. Keep your BlackBerry (BB) unlocked, blue tooth paired with device.
    3. Press 'Phone' sign on the sterring wheel to activate menu.
    4. Scroll using the up/down arrows on the steering wheel for 'Settings'
    5. Select settings by pressing the 'Phone' sign.
    6. Scroll for 'User data' and select by pressing 'Phone' sign
    7.Scroll for 'Add contacts' and select by pressing 'Phone sign'
    8. After hearing the voice message from the car audio do seetings on BB as below
    9. Go to 'Manage Connections' -> 'Set up Blue Tooth' - > 'Cancel' This Leaves 'Blue tooth' menu with "Blue & Me" on the screen.
    10. Click 'Menu' button and click on 'Transfer Contacts'
    11. The BB shall transfer 300+ numbers within a minute ans give a message of completion of transfer.
    12. Look at the car display, it shows the numbers being added, trailing the completion of transfer completion from BB
    13. Within less than 2 minutes, the address book in the car device is updated and you have all the names in the phone book of the car now.
    Enjoy but keep the usage of the calling from car to safety limits.
    Ram

  • SecLDAP plugin failed to get name for the entry XIR2 SP2

    When a user who is in the ldap store attempts to log into InfoView, after about 10 minutes, he gets a message as follows:
    Account Information Not Recognized: An error occurred at the server: the secLdap plugin failed to get the name for the entry with dn=cn= with what appears to be appropriate information. This user does not appear to have a presence in BO (does not have an inbox, favorites, etc) nor does he appear in the ldap userlist in the CMC.
    Can you describe the functionality contained in this plugin ? It's function ?
    Thank you,
    Vicki Stanfield

    Hi,
    if you need a functional overview, check this SAP Note:
    https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3133383439313526
    You need a S-User for Login.
    Regards
    -Seb.

  • When I use under file save page as a desktop icon firefox downloads 2 a icon and a folder, how do I get rid of the folder and just keep the icon like in I.E.

    I'm just trying to save my favorite website short cut icon to the desktop instead of using bookmarks for everything. In I.E. you have the option to save to desktop your favorite website and you only get a shortcut icon. but in Firefox if you save your website to your desktop you get both the website icon but also a folder. but if I try to remove or delete the folder it removes the icon also. how in Firefox can I get just a shortcut icon for favorite website but without the folder.

    Hi Panamark,
    The problem has been resolved for me. I am a little fuzzy on how it got fixed.
    I only have 3G, so I think I went to the library to use wi-fi.
    I think I just deleted the stuck apps, and the downloaded them again. You do not have to pay again when you download a previously purchased app.
    It is now August, and fortunately I have not had any stuck apps lately.
    As you may already know, you cannot download an app over 20 MB via 3G.
    I have the Kindle app also. No new updates lately. I only bought one thing using Kindle. It was a guide to iPad that was only $1.99 or so, but it did not really have anything that cannot be found in normal free Apple guide.
    I have borrowed an ebook from the library using Overdrive app. You can choose the ebook version from Kindle.
    I don't have any weather apps.
    Let me know what happened when you get the chance.
    M

Maybe you are looking for

  • Why doesn't Firefox 4.0 work AT ALL on my fully updated Windows XP system?

    I downloaded FF 4.0 and it does not work AT ALL. None -as in zero- of the functionality appears, ''other than'' (1) an improperly formatted "save password" request button; (2) When I deselect "menu" in "View," I only get a gray "Firefox" button in th

  • Login as sys without supplying the password from the db host

    Hi I have tried today to login into the database as sys user and was able to login by providing a blank password. I tired this from sql plus installed in the db host. Why is the db allowing users to login as sys users with blank password? isnt this a

  • IPhoto wont allow restart for updates

    1st Instal iLife 2nd Open iPhoto , it says I need updates so I install them 3rd Computer says " You need to restart" and presents a nice window to restart. 4th New window pops up that says iPhoto wont let you restart. 5th Growl and force quit What's

  • Midi file Logic Express 7.2 and Sibelius 4.10

    Hi All I am using Logic Express 7.2 to export a midi file then importing it into Sibelius 4.10, this works fine on G5 mac but not on an intel iMac. The Sibelius error is "There was a problem opening the midi file: Not a format 0 or 1 midi file" I hav

  • Visual Admin not starting up

    Hi Experts, i installed Nw SAP 7.0.1,when i trying to login to visual admin or config tool, the path is not working,i set the path for java, but it showing error error details E:\usr\sap\PRD\JC00\j2ee\admin>"C:\j2sdk1.4.2_30-x64\bin\bin\java" -showve