[Mac][JS] Where does InDesign store last "Save As" folder path?

Is this location accessible to scripting? I've looked around the preferences objects as well as the "Class" properties of the File and Folder objects without finding anything.
Coming up empty-handed there, I looked through the filesystem for .plist files it might be using. It must be stored in some such place, because the location persists across sessions and survives a trashing of the InDesign Defaults file at ~/Library/Preferences/Adobe InDesign/Version 7.0/en_US/InDesign Defaults. It also seems to write the location to wherever it lives immediately upon a Save As rather than at application close. I've tried discovering the location with lsof but either can't catch it in the act or am missing which of the hundreds of files InDesign has open is the culprit.
It does not appear to be in com.adobe.InDesign.plist or com.adobe.mediabrowser.plist. There is a path property (NSNavLastRootDirectory) stored in the former file but it's not the one.
I hope I'm making this more complicated than it is and that it can be accessed in a DOM property somewhere. Does anyone know?
Jeff

So you're asking the wrong question. You dont' care "where does InDesign store it," you care "where can I get it?"
Actually I'd like to set it as well as get it. I would like to integrate with InDesign's expected behavior as much as possible; it would be ideal if, the next time a user did a Save As, it defaulted to the location they had chosen when they ran my script. Little inconsistencies like that drive me batty. It's a small issue and quite likely not worth the time I'm spending on it, but at this point I'm so confused by how InDesign is maintaining these paths that I would like to understand for understanding's sake.
The InDesign Saved Data cache file you pointed out does indeed contain a lot of paths, and these kinds of save, import and export locations appear to be among them. They jump around in the file a lot, though. If you have any experience parsing this file and can help me look for whatever markers it uses I would be grateful.
While in my earlier tests I never saw any path property in com.adobe.InDesign.plist but NSNavLastRootDirectory, I have since sometimes seen NSNavLastCurrentDirectory:GetFile:0 and NSNavLastCurrentDirectory:PutFile:0, and these do hold what you would expect. However, all installed versions of InDesign read and write to this file without affecting each other's behavior in this regard. And I haven't been able to figure out yet when InDesign writes or reads the path to its cache file and when it uses the .plist file.
Complicating things further, it looks to me like calling File.saveDialog() in CS5 brings up the folder in NSNavLastRootDirectory, regardless of what was last chosen during a Save As in the UI, while CS4 respected the last Save As. Using the value in NSNavLastRootDirectory via
var startFolder = Folder(app.doScript("return (do shell script \"defaults read \" & \"com.adobe.InDesign\" & \" NSNavLastRootDirectory\")",ScriptLanguage.APPLESCRIPT_LANGUAGE))
will at least allow me to prevent the user from landing in a restricted folder in CS5.

Similar Messages

  • [ID CS3 (Win)] - where does InDesign store my PDF file name?

    Have you run into this before? You have a document (let's call it "MyDoc.indd") and you want to use it as the basis for a new document ("NewDoc.indd").
    So you open MyDoc, Save As "NewDoc". You now work on NewDoc.
    Some time later, you go to Export NewDoc as a PDF and it remembers MyDoc and recommends that as the file name for the PDF. If you change the file name for your PDF and then re-save your INDD file, it will now remember the new name as your default PDF name.
    But what if you want to change this beforehand, eg: you're not ready to Export the file, but you want to make sure that when you do (or someone else does) they use the correct file name?
    -- Tom
    PS: I've noticed that this behaviour is different on a Mac and on a PC.

    Sure I get that - but the question was "where is this information stored"? If I'm not ready to save my PDF yet, is there anywhere (like a Document Properties panel) that I can go to edit this information.
    The use case is - you're preparing a file draft, but it will be finalized and printed by others. You would like to have some control over file naming conventions, so you want to make sure that when they go to save the PDF, the correct name is pre-populated.
    Your technique will surely work (it's the one we've been using as well), but I don't want to save a "dummy" PDF just because I want to change the stored filename. This information _must_ be available somewhere else, no?
    Thanks for your participation!
    Tom

  • New version of Reader 11.0.1 does not remember last save as folder like previous version

    It is annoying having to navigate to the same location every time a document is saved.
    Previous versions have used "sticky" folders so it remembers where to "save as" a file.
    Is there a way to make it revert?

    It is annoying having to navigate to the same location every time a document is saved.
    Previous versions have used "sticky" folders so it remembers where to "save as" a file.
    Is there a way to make it revert?

  • Where does iPhone store backups in Mac and Windows?

    Sorry I could not find the answer elsewhere.
    Where does iPhone store backups on Windows and Mac?
    Can the location be changed?
    Thanks!

    Mac:
    Library/Application Support/MobileSync/Backup/
    Windows:
    C:\Documents and Settings\username\Application Data\Apple Computer\MobileSync\Backup
    (Note you may need to turn on show hidden files and folders to see it on Windows)
    As far as I know, you can't change it.
    Good Luck!
    EDIT: Too slow to post :P.

  • TS4036 where does icloud store my mac osx recovery key?

    where does icloud store my mac osx recovery key for file vault?

    Note that you have to have specifically chosen to store the key with Apple at the time you created the FileVault encryption, and chosen security questions so that you can identify yourself when you come to retrieve it. If you did not store it with Apple in this way and do not have a record of it elsewhere then you cannot proceed. All this has nothing to do with iCloud and the process is not automatic.

  • Where does Keynote store the audio files in a presentation

    I have slides with individual audio files. When I import or attach the file and then save the presentation, it changes the file name to .mov extension. Where does Keynote store those files? I would like to edit the saved Keynote version, but cannot locate the .mov file!

    I'm not exactly sure of what you want to do, and I'm not sure if my answer is the most efficient, or even wholly correct, but here goes ...
    When you save a KN presentation (a KN doc) which includes an audio (or movie) file, you can save it 2 (3?) ways: either without or with the file being copied into the document, or as a "package". In a test file I just made with 3 white slides (title, slide with song, second slide with song) the results:
    without: 3.8 MB; with: 9.4 MB; package: 9.4 MB. The essential difference, aside from size, is that if saved without, if you play the KN on another machine which doesn't have those audio files on it, the audio won't be there. To make the KN truly portable, you must save with, or as a package. (I'm not too sure of the concept of package in KN. In PP, saving as a package means you end up with a folder, which contains the PP and the media files, each as separate entities. Saving a KN package yields not a folder but a file, which looks to me identical to the result achieved by simply saving with, and seems to behave identically, as well.) The audio file you used will in any case remain where it was before you used it, but, if the KN doc is saved with, or as a package, a copy of it will go into the KN doc.
    But then, what do you mean by "edit"? What do you want to edit, the KN presentation, or the audio file within it? If the former, I don't understand where the problem might be. If the latter: using the QT inspector within KN, you can change the length of the audio file (where in the song it starts and stops), whether to start it on click, or automatically after transition, or to loop it. If you wanted to do some other, more exotic audio editing, like reverbs or other effects, I'd do that on (a copy of) the original audio file (found wherever it was before) with another app (GarageBand, for instance), and then I'd replace the first, non-edited, version of the audio file in the KN doc with that.
    Have I missed something?
    Message edited by gbdoc: maybe someone will chime in to clarify the difference between "saved with" and a "package"

  • Where does Leopard store my Identity info?

    I dunno what's going on, but Mail insists on continuing to use an email account that was closed and deleted last year, and Safari has some other issues relating to my personal info.
    I'd like to take back control. Where does Leopard store my identify info?
    Thanks.

    Thanks, Baltwo. Any idea where I can edit the zip code that the system defaults to (which is no longer correct)? A couple of websites use my zip code to customize my visits. I can't find my zip code in anything related to Safari. I know I entered one when I first set-up the computer. Where can I find that stuff?
    Thanks!

  • Where does Iphoto store ratings, arrangement of photos, events, libraries?

    Hi, I currently have Leopard, I was planning on doing a clean install with Snow Leopard soon. Afterwards I plan on restoring Iphoto back to the way it was. I have a 70 gb library and importing my photos, rearranging the events, photos, and libraries would take ages if I had to start from scratch. I have my whole computer backed up using Carbon Copy Cloner. My question is where does Iphoto store the ratings, manual arrangement of photos, events, libraries, etc? Thanks

    iPhoto is a relational database program and everything is stored in the iPhoto library - it must be treated as a single entity - it is not possible to isolate components in it - simply drag the iPhoto library intact as a single entity from the clone back to the pictures folder of the main computer
    To test prior to doing an erase and install (the Mac does not have a "clean install") you can depress the option key and launch iPhoto and select the backup copy and test it - be sure to do an option launch and paint back to the main library afterwards
    LN
    LN

  • Where does OIM store the LDAP Sync URL

    Where does OIM store the LDAP URL which was specified when ldap sync is configured? Is it possible to change this URL?
    Thanks
    Aspi

    iTunes places the backup files in the following places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Windows Vista: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\

  • When itunes backs up my iphone where does it store contacts

    When itunes backs up my iphone where does it store contacts

    iTunes places the backup files in the following locations:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Note: To quickly access the Application Data folder, click Start, and then choose Run. Type %appdata% and click OK.
    Windows Vista and Windows 7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    Note: To quickly access the AppData folder, click Start, and then in the search bar type %appdata% and press the Return key.
    But I doubt you can retrieve contacts from there.

  • Where does Firefox store images saved as desktop wallpaper?

    Where does Firefox store images saved as desktop wallpaper? i was playing around with windows theme and I can't find the wallpaper that was displayed before.

    Firefox saves downloads to wherever you specify. Check your settings in Tools > Options > General, Download section. If you have it set to "Always ask me where to save files", then only you know where they were saved.
    See: http://support.mozilla.com/en-US/kb/Options+window+-+General+panel
    Also see: http://www.sevenforums.com/tutorials/281-desktop-background-change.html
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''Install/Update Adobe Flash Player for Firefox (aka Shockwave Flash)'''</u>: your ver. 10.0 r45; current ver. 10.1 r53 ('''important security update 2010-06-10''')
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash Updating Flash]'''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    -exit Firefox (File > Exit)
    -check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -double-click on the Adobe Flash installer you just downloaded to install/update Adobe Flash
    -when the Flash installation is complete, start Firefox, and test the Flash installation here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version of Flash. To install/update the IE ActiveX Adobe Flash Player, same instructions as above, except use IE to download the ActiveX Flash installer.
    *Also see: http://kb.mozillazine.org/Flash ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]
    <u>'''You'''</u> ~~red:<u>'''MAY'''</u>~~ <u>'''need to Update Adobe Reader for Firefox'''</u>: your ver. N/A; current ver. 9.3.3 (important security update release 06-29-2010; see: http://www.adobe.com/support/security/bulletins/apsb10-15.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: http://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    ''<u>You may be able to update from the Adobe Reader installed on your system</u>'' instead of going to the Adobe site and downloading. Start > Program Files, find and click Adobe Reader to open, click Help, click Check for Updates.
    ''<u>If you go to the Adobe site to download the current Adobe Reader:</u>''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    ~~red:-See the images at the bottom left of this post to see the steps to take on the Adobe site~~
    -exit Firefox (File > Exit)
    -check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -double-click on the Adobe Reader installer you just downloaded to install/update Adobe Reader
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version. To install/update the IE ActiveX version, same instructions as above, except use IE to download the ActiveX installer.
    *Also see: http://kb.mozillazine.org/Adobe_Reader ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • Where does mavericks store photo files

    where does mavericks store photo files.

    where does mavericks store photo files.
    This will depend on how the photos are imported to your Mac.
    For photos, that you import to your iPhoto library see Terence Devlin's excellent user tips: 
    iPhoto and File Management
    How to Access Files in iPhoto
    For downloaded files see Niel's answer, and for many other applications you are free to pick a folder in the finder to store the photos.  The default folder, where most applications will look for photos is your Pictores fold run your Home folder.

  • [solved] Where does yaourt store packages it creates from AUR ?

    Hi !
    Using yaourt for AUR access, pretty happy with it, too (most features & fast enough for me).
    Now when I install something from the AUR, I'd like to keep a backup copy of the package (handy especially for some git / svn packages that do not always build). This leads to the question, where does yaourt store the packages before installing (should be able to grab a copy then ...) ? Or does yaourt itself keep a backup copy somewhere, like pacman does ?
    Thanks, A.
    Last edited by axel668 (2010-05-20 18:05:19)

    Please don't do that; that is what the wiki is for. https://wiki.archlinux.org/index.php/Fo … Bumping.27
    Closing

  • Where does Messages store attachments on the iPad?

    Where does Messages store attachments on the iPad?
    some photos are quite large, so it would be good to know where they go, and how to manage the app.... ;)

    Managing memory usage is not possible because the user does not have access to the file structure (unless you have jail broken your iPad that is).

  • Where does EBS store customized LOV elements?

    Dear All,
    We are developing a report on EBS r12 >> Payables >> Payments screen.
    The Functional Consultants Team added a DFF ( view_inv_pay.DESC_FLEX ) with only 1 segment and its description at the Invoice Payment block level ( VIEW_INV_PAY )
    which synchronizes with each matched row in this block.
    The values of the DFF come by selecting from an attached customized List of value that the Functional Consultants Team had populated its elements using data loader.
    We have a requirement to display the DESCRIPTION of DFF segment in the report not its actual value.
    So the question is:
    Where does EBS store the data related to a customized LOV ?
    And how to join between the LOV’s under laying tables and the below report tables
    ( AP_CHECKS_ALL AC , HZ_PARTIES HZP , AP_SUPPLIERS PV , GL_DAILY_CONVERSION_TYPES GDCT , AP_INVOICE_PAYMENTS_ALL  AIP , AP_INVOICES_ALL AI ) to display the DFF description?
    Since, only the actual DFF values are stored in AP_INVOICE_PAYMENTS_ALL table.

    Dear Sandeep,
    That is great, but what about the joining condition.
    I know that i can join by the segment value in the AP_INVOICE_PAYMENTS_ALL table
    to be like below:
    SELECT ffv.flex_value, ffv.description
    FROM fnd_flex_values_vl ffv, fnd_flex_value_sets ffvs , AP_INVOICE_PAYMENTS_ALL API
    WHERE ffvs.flex_value_set_id = ffv.flex_value_set_id
    and API.SEGMENT1 = FFV.FLEX_VALUE ;   -- Assuming that the actual DFF value stored in SEGMENT1
    AND ffvs.flex_value_set_name LIKE '&value_set' But for tuning issues is there any an alternative to previous condition?
    Edited by: 670612 on Mar 21, 2012 1:47 AM

Maybe you are looking for