Get the name of the folder after parent.

Hi forum.

I need a big help on your part.

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

for example.

/Users/wleastudio/Desktop/rantacacb.indd.

I need to get the file name selected in red and alert...

If it isn't immediately on desktop I can do easily alert as below...

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

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

Alert ("the document is in the office"), out;

}

If the document is saved in a folder on your desktop, that's the problem, I find it difficult to find the name of the folder and get alert...

/Users/wleastudio/Desktop/rantacacb.indd.

Thanks in advance

Hello

artCraft2 wrote:

...

If it isn't immediately on desktop I can do easily alert as below...

...

It's always all right way:

the last folder name: app.activeDocument.filePath.parent.name

last folder: app.activeDocument.filePath.parent

You could step using parent.parent and so on...

Jarek

Tags: InDesign

Similar Questions

  • Have been left in charge all night I get the message "after reboot requires the password" question is why is this automatic restart, and is this normal

    Have been left in charge all night I get the message "after reboot requires the password" question is why is this automatic restart, and is this normal

    Occasionally, it may restart because something was wrong. It is not a problem unless this happens frequently.

  • Pavilion x 360-13-s100nv: delete the folder after the driver update

    I just installed updates for my x 360-13-s100nv Pavilion nb.

    Well, during the process, the installation wizard retrieves the downloaded package (for example, sp71883.exe, sp71899.exe etc.) to a local folder. And then began the new installation/update driver.

    The question is, can I delete this folder after successful driver installation?

    As I saw that the folder contains subfolders with files of extracted packages, files etc. some newspapers.

    Yes.

    You can delete the folder after the installation of the driver.

  • How to get the Favorites after resetting my computer? firefox saved on the external hard drive folder

    I had to reset my computer because I downloaded a sort of hidden adware that downloads new adware permanently, which makes my computer unusable. Adware ill-conceived, lol.

    I saved the folder of firefox mozilla whole folder of files (x 86) programs on an external hard drive. I thought that if I just copied this file on the computer, my favorites would be sympathetic to it. all the Favorites are gone.

    bookmarks are not stored in the folder of firefox? is it possible to recover? It's worth years of bookmarks I need for work.

    any help is greatly appreciated, thank you. I tried the suggestions that others had offered for similar problems.

    Your Firefox personal data is not stored in the Firefox program folder, but are stored in the Firefox profile folder that is located in the AppData\Roaming\ folder.

    • C:\Users\ < user > < profile > \AppData\Roaming\Mozilla\Firefox\Profiles\.

    You can use this button to go to the current Firefox profile folder:

    If you do not save this profile folder then your bookmarks and other personal data is lost.

    See also:

  • Get the Message After that recent Windows 7 update for this computer is not running Genuine Windows

    I bought this directly from computer to DELL 9 months ago. After the last update of Windows 7, I get the Activation screen pop up:

    "This computer is not current running Genuine Windows"

    I tried some of the suggestions on the community forum - did not work.

    I tried to re - activate Windows by phone - rejected

    I tried to follow the directions on the error screen - unfortunately, I seem to get lost in an infinite loop, tried to contact MS Support by eMail... I can never get the screen to contact technical support by email.  I'm trying this.

    This is the form of the output of the MS Genuine Advantage Diagnostic Tool:

    Diagnostic report (1.9.0019.0):
    -----------------------------------------
    Given WGA-->
    Validation status: genuine
    Validation code: 0

    Code of Validation caching: 0x0
    Windows product key: *-* - M3DJT - 4J3WC-733WD
    The Windows Product Key hash: xo + ajVSpae7/4VoZjS7m6JL0f3A =
    Windows product ID: 00371-OEM-8992671-00524
    Windows product ID type: 2
    Windows license Type: OEM SLP
    The Windows OS version: 6.1.7601.2.00010100.1.0.048
    ID: {DF706470-8353-4FE0-BF91-B476B1CC9AD5} (3)
    Admin: Yes
    TestCab: 0x0
    WGA Version: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: Windows 7 Professional
    Architecture: 0 x 00000009
    Build lab: 7601.win7sp1_gdr.160121 - 1718
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    WgaER data-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    WGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 114 blocked VLK 2
    Microsoft Office Professional Edition 2003-114 blocked VLK 2
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->

    Other data-->
    Office details: {DF706470-8353-4FE0-BF91-B476B1CC9AD5}1.9.0019.06.1.7601.2.00010100.1.0.048x 64*-*-*-*-733WD00371-OEM-8992671-005242S-1-5-21-3549810005-129049543-177520327Dell Inc.. Inspiron 3847 Dell Inc.. A06 20150115000000.000000 + 0005BFC3507018400F404090409Mountain Standard Time(GMT-07:00)03DELL WN09 114114Microsoft Office Professional Edition 20031159D1605114E3500vfZmaSmFPIYrLWTcZSZErUQg Fo plus73931-640-0000106-5735514

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.1.7601.17514

    Name: Windows 7 Professional edition
    Description: operating system Windows - Windows (r) 7, channel OEM_SLP
    Activation ID: 50e329f7-a5fa-46b2-85fd-f224e5da7764
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 00371-00178-926-700524-02-1033-7601.0000-1252015
    Installation ID: 001012827913503504119443300805063884364523993301059480
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
    The machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=88341
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
    Partial product key: 733WD
    License status: licensed
    Remaining Windows rearm count: 2
    Trust time: 16/02/2016 10:26:03

    Windows Activation Technologies-->
    HrOffline: 0x8004FE21
    HrOnline: 0x00000000
    Beyond: 0 x 0000000000010240
    Event timestamp: 2:11:2016 10:23
    WAT Activex: registered
    WAT administration service: registered

    --> HWID data
    Current Hash HWID: LgAAAAEAAQABAAEAAAACAAAAAgABAAEAln1 + zOI4/OXyG2qmZoCBP/rNYBDI9g is

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes
    Windows marker version: 0 x 20001
    OEMID and OEMTableID consistent: Yes
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    APIC DELL WN09
    FACP DELL WN09
    HPET DELL WN09
    MCFG DELL WN09
    FPDT DELL WN09
    ASF! INTEL HCG
    WN09 DELL SLIC
    SSDT PmRef Cpu0Ist
    SSDT PmRef Cpu0Ist
    SSDT PmRef Cpu0Ist
    SSDT PmRef Cpu0Ist
    MSDM DELL WN09
    LAURENCE INTEL HSW

    Thank you for your response.

    This is on a DELL computer.  I contacted DELL support and they have a bulletin on the basis of their knowledge.  The bulletin has a number of solutions for fixing this updates the BIOS including instructions, and updates the driver Intel.  For me, the update of the BIOS seems to have solved the problem.

    http://www.Dell.com/support/article/us/en/19/SLN104591/en

  • Re: HDR-AS100V-remove the 100AVN folder or the contents of the files in the folder after downloading?

    I was wondering what is the recommended way to free the memory after I downloaded my files do I delete the folder AVN? the files in the folder? or reformat the chip together again?

    Thanks in advance

    Good day Laszlo,.

    We recommend that you format the memory card on the Action cam to free up the storage space on the SD card, this would open up any excess files such as files metadata or exif of previous videos and photos allowing you to maximize the storage capacity of the SD card.

    If my post answered your question, please mark it as "accept as a Solution.

  • How can win 7 Ultimate on a HP dv7-6101eo - I get the drivers after network?

    Right now I feel more stupid. I installed windows 7 Ultimate on my computor after installing a new SSD.

    I also downloaded and burned a cd with files spxxxxx.exe of HP with my drivers for the computer.
    But the computor will not take them. Are they supposed to be .inf files or what? Why cant I just open Device Manager, click on a button to upgrade and then have the computor to get the file from the cd?

    I feel so stupid! It worked excellent double clicking on it directly from the cd. For some reason some disks required to be installed and then reeinstalled. Now, it's really very pretty and readers have all themselves properly installed. I guess I was so used to .ini files and can move difficult the idea simple and smart of dubbelklicking just as you would with normal programs, even never struck me

  • The library view display is not the content of the folder after the opening by computer shared in the homegroup

    Months ago, I shared the "My pictures" folder with my homegroup.  At some point, my son has opened one of its computer records & used an image.  Today, I tried to get a picture of this same folder through the 'Pictures' library & it tells me that the folder is empty.  The thought of losing all my photos made my heart sink.  It turns out that... all original photos are visible when my son is in the folder from your computer via the network AND I drilled down on my C drive & found there as well... Thank God!  I use Carbonite to keep a backup, but if Windows is going to "Empty" a folder & then Carbonite back up this empty folder... I have no backup & will have lost my photos!  What is going on?

    Hi Giddens,
     
    What is the error message you get when you try to access the folder that contains the images?
     
    I suggest that you do the following.
     
    Step 1:
     
    For any question of shared folders in the homegroup, run the resolution of the problems of shared folders to automatically find and fix some common problems.
     
    Follow these steps to run the troubleshooter.

    a. Click Start, type troubleshooting and press ENTER.
    b. click the view all link in the left panel.
    c. click on Shared Folders to run the troubleshooter.
     
    In addition, take a look if you have file sharing set up properly.
     
    Check out the articles below
     

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Detect when a NavigationPane or a Page Gets the focus (after closing leaves) in QML

    Hello world

    Is there a way of QML to detect when a NavigationPane {} (or a {Page} it) Gets the focus?  At the close of a sheet, I want to call a function within this NavigationPane (which is a separate QML file).  After reviewing the documentation, I saw nothing...

    Thank you!

    Too bad.  Leaf has a slot of onClosed I can use.

  • Get the path after Spotlight search

    When I find a doc via Spotlight search, I know that I can click on it to access.  But how to get the full path of the file so I know the exact path where the file is located?

    Just hold down the command key to display the full path. The path appears at the bottom of the pop-up window of Spotlight.

  • How do to get the documents after the computer has been infected by a virus and wiped

    Hello

    My laptop works most completely and there was a humming noise whenever I tried to start. I learned that the laptop was corrupt. I was informed by the customer service to clean the laptop. In doing so, all parameters resumed those available at the time of the purchase in 2008.

    How can I recover all my documents, pictures, etc.?  I take the laptop to a computer technician to help with this.

    Can also advise you how to make a backup of all items stored on my laptop please.

    Kind regards

    J.

    Wiping the phone clean and restore to factory condition as advised by "customer service" (that may be), you actually deleted all the files that were on the computer. Recovery, even by a specialized at great expense data recovery company will be at best fragmentary.

    I'm moving your question to the forum space Windows for system repair and recovery, where it is possible that you may receive some additional tips, but I think that you can simply cut your losses at this point. If there is a hardware problem that caused the initial symptoms, it is likely that you will face more questions and data loss unless you get the hardware repaired/replaced.

    -steve

  • Do not get the sound after having moved to windows 7 Windows 8

    No sound in Windows 7

    Sound indication bar is moving, but I can't hear anything. I checked the speaker connections and even tried the plug to headphones, but still no sound. Device Manager does not have any problem, and I don't get the error messages.

    Here is my system information:

    Motherboard: HP183F

    HDAUDIO\FUNC_01 & VEN_8086 & DEV_2806 & SUBSYS_80860101 & REV_1000
    HDAUDIO\FUNC_01 & VEN_8086 & DEV_2806 & SUBSYS_80860101
    HDAUDIO\FUNC_01 & VEN_111D & DEV_76D9 & SUBSYS_103C183F & REV_1001
    HDAUDIO\FUNC_01 & VEN_111D & DEV_76D9 & SUBSYS_103C183F

    Hi Isabelle,.

    I would like to know some information about the problem so that we can help you better.

    What is the brand and model of your computer?

    Thank you for details on the issue.

    I also know that the inconvenience that you are experiencing because of his problem. I will definitely help you.

    This problem can occur either because of corrupt audio driver or incorrect audio settings.

    I would suggest trying the following methods and check if it helps.

    Method 1:
    Troubleshooting of audio playback and check.
    Reference:
    Open the troubleshooting of Audio playback
    http://Windows.Microsoft.com/en-us/Windows7/open-the-playing-audio-Troubleshooter

    It search common problems with your volume settings, your sound card or driver and your speakers or a headset.

    If this does not help, use method 2.

    Method 2:
    Please use the suggestions in this article and check the issue.
    Reference:
    No sound in Windows
    http://Windows.Microsoft.com/en-us/Windows/no-sound-help#no-sound=Windows-7&V1H=win8tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • How to get rid of C:\Commserver folder after reinstall

    Hello

    Unit 4.0.5

    I installed the unit on drive C instead of download so used D and the UninstallUnity tool used, then reinstalled on D. However, C:\Commserver still shows up. Just in case where deletion C:\Commserver break anything, I renamed it to c:\OldCommserver square and the next time I look at it recreated an another C:\Commserver

    How can I get rid of the C:\Commserver.

    Thank you

    Before you delete the folder, go to add/remove programs to remove program uninstall the unit you had installed from CiscoUnityTools.com

  • Files disappeared from LR (deleted?), but has pictures of LR and hard drive. How can I get the folder HD back structure in LR?

    I can be the first person to have ever done that. I don't know what I've done yet. I have spend hours to organize my folders. I had imported them all in the horrible mess that they were (many duplicates, etc.). After obtaining their almost perfect I went to delete what I thought, it was a trash folder. I think I must have accidentally deleted my pictures folder (where they were all stored). Strange is that the catalog has all the 10,000 photos, but I have no file. Not a single one. Not even the HD Mac one. All changes have been made in LR, I know better than to go messing around with something outside of Lightroom. All changes I made to the files are on the hard drive right now. I just need to find a way to find the LR folder structure. However, it won't let me import anything. When I try to add a folder nothing is re-elected under the menu folders. I don't know what to do. Help! I've been throwing these to print photos for a Christmas gift.

    Given that I'm not a MAC person, as far as I know is that this file preference is located in a hidden directory and so you must follow the instructions in the link.

    The user library file is hidden by default on Mac OS X 10.7 and later versions. For temporary access to the file library user, press Option and select go > library in the Finder.

    If you don't want to delete the preferences file, you can rename it instead, and Lightroom will create a new file, preferably when you launch Lightroom.

  • Get the Notes after the installation of Dungeon

    Hello

    I just destroyed my Notes from the iPhone, with some important financial information in them. I'm pretty * and thought do not forget to make easy the next time and not install unknown software next time before saving the data.

    OK well, I have a backup of the iPhone, is not too bad, but I would like to get more fresh if possible data, so I ask other solutions (I'm new to Apple).

    What I did:

    -Opening note, do not do something bad in him. There seems no possible local version (by scanning or other) change.

    -Config is: sync Gmail Note; iCloud off sync (and Notes 'stored as local' in the config of Notes). My Notes where not Sync Google keep however.

    -J' so installed Dungeon on iPhone

    -Notes appeared in "Notes of Gmail" instead of "local" notes Date of lost note suddenly became 27/12/15 (not a recent date than this post, for example 20/01/16)

    -Disabled notes in Gmail and enabled in iCloud

    -Nothing found anywhere (Gmail, iCloud, iPhone). Only option seems to be to restore iPhone.

    Any ideas on what can be done, maybe they are hidden somewhere in the limbo of synchronization?

    Thank you

    Answer found in Re: Save to Application Notes

Maybe you are looking for

  • USB 2 TPT connector cover

    I just bought a flash of the discrete form of the 64 GB Cruzer drive. I intend to leave inserted in the connector on the Thinkpad. This brings me to two questions- How to permanently remove the cover of the USB connector How to reattach it if I lose

  • Recovery media for HP Pavilion 17-F029wm

    Can't use a CD - R for my a set of recovery media or should it be DVD or DVDDDL? TIA! James

  • where can I go j lost or forgotten password

    I recently had some thing happens and the pc off and now I don't remember my password and I need to find a way to recover. I should have made a backup disk.

  • RAID configuration PROBLEM

    Hello I have a little trouble on a server R610 in RAID5 with 3 disks and RAID H700 card. The 1st disk in "Foreign" State, the second in 'Fail' and the 3rd en 'Oneline '. The virtual disk 'offline '. Can I do a clear at the level of the 'foreign confi

  • when im on messenger so I call friends, I hear the good ones but they cannot hear me at the microphone

    I have problem with my micrephone when I'm on Skype im trying to have the call or video conference with someone on my list, I can see them on the cam and hear them well, but they cannot hear me at all but they can see me on cam please help me fix my