InDesign last saved version

Hello

I'm trying to get the last saved version of indesign. The code below is tried. This works well until what CS6. After the CC version it does not correct answer.

var filePath = app.activeDocument.filePath
var fileName = app.activeDocument.name
finalPath = filePath + "/" + fileName
f = File(finalPath)
IDversion= getFileVersion(f)


 if (IDversion >= "5.0" && IDversion < "6.0"){
        alert( "Document was created in indesign version CS 3")   }    


        
    else if (IDversion >= "6.0" && IDversion < "7.0"){
        alert( "Document was created in indesign version CS 4")       }


  else if (IDversion >= "7.0" && IDversion < "7.5"){
        alert( "Document was created in indesign version CS 5")       }


  else if (IDversion >= "7.5" && IDversion < "8.0"){
        alert( "Document was created in indesign version CS 5.5")       }


  else if (IDversion >= "8.0" && IDversion < "9.2"){
        alert( "Document was created in indesign version CS 6")       }


      else if (IDversion >= "9" && IDversion < "10.0"){
        alert( "Document was created in indesign version CC")       }


else if (IDversion >= "10.0" && IDversion < "10.1"){
        alert( "Document was created in indesign version CC 2014")       }


else if (IDversion >= "10.1" && IDversion < "10.2"){
         alert( "Document was created in indesign version CC 2014.1")       }




else if (IDversion >= "10.2" && IDversion < "11.0"){
         alert( "Document was created in indesign version CC 2014.2")       }


else if (IDversion >= "11.0" && IDversion < "12.0"){
        alert( "Document was created in indesign version CC 2015")       }




    else{
        alert( "Document was created in Indesign version lower than CS 3")       }




function getFileVersion(f)
{
   


    var IDversion;
    f.open('r');
    f.seek(29,0)
    IDversion = f.readch().charCodeAt(0);
//~     f.seek(33,0)
//~     IDversion1 = f.readch().charCodeAt(0);
//~          if(IDversion1 >0)
//~     {
//~                 IDversion = IDversion + "." + IDversion1
//~     }


    f.close();
    return(IDversion);
    }

Please correct where I missed.

Thank you in advance,

Kitty

This is my version

// by Trevor http://www.creative-scripts.com
// https://forums.adobe.com/message/8335570#8335570
var doc, filePath, fileName, finalPath = false, IDversion;
doc = app.properties.activeDocument;
if (!doc) alert("Crash!"); // you could change the alert to exit if you are feeling nice
filePath = doc.properties.filePath;
if (filePath) {
    fileName = doc.name;
    finalPath = new File(filePath + "/" + fileName);
}
// Note using .fullName property as that will fail for converted (non saved files)
IDversion= getFileVersion(finalPath);
alert("Document was created in InDesign version " + IDversion);
function getFileVersion(f) {
    var IDversion = parseFloat(app.version); // if the file has not been save it was created on the current version!
    if (f) {
        f.open('r');
        f.seek(29,0)
        IDversion = parseFloat(f.readch().charCodeAt(0)); // see the parseFloat ;-)
        f.close();
    }
    if (IDversion < 9) {IDversion = "CS " + (IDversion - 2);}
    else if (IDversion < 10) {IDversion = "CC";}
    // Presuming that Adobe keeps to their once a year update
    // IMHO Adobe should learn a bit from Microsoft and make less often less buggy releases
    else {IDversion = "CC 20" + (IDversion + 4);}
    return(IDversion);
}

Tags: InDesign

Similar Questions

  • Cancel the document causes to revert to the last saved version

    I use InDesign CC for a few months and synchronized to 9.2 when it was available. I have none of these problems until yesterday/today ' hui.

    1. it comes to document that I worked on a week or two. Yesterday I could not save this file or one of my open ID docs. Rebooting seemed to allow me to record properly.

    2. there had some problems with cancellations for a few more days. Hit the cancellation goes back too far. Today, he'll be back as far as the last saved version of the file.

    3. a small problem is that when I make changes to a text box that changes the shape, it does not display the change without a lot of foreigners by clicking.

    It's a file hidden in OSX. Library file hidden Google Mac of ways to do this.

  • Reverting to the last saved version?

    What is the advantage of this more simply using the History palette?

    mediafred wrote:

    What is the advantage of this more simply using the History palette?

    The biggest advantage is that is exists, while the palette is not history.

    Or are you looking for the Photoshop forum?

  • My CS5 programs all automatically open the last saved document

    This was not the case before a few weeks ago. Now, when I open InDesign and other CS5 applications, the last saved document opens automatically.

    Does anyone else have this problem?

    Open System Preferences > general. Uncheck "restore windows when to stop smoking and the reopening of the apps.

  • Half of my Word document disappeared.  How can I find the history of the document so I can revert to a saved version the earlier?

    Half of my Word document disappeared while I was working on it.  I tried to use the back arrow to recover, but Word is closed.  How can I find the history of the document so I can revert to a saved version the earlier?

    I hope that you have a Time Machine backup that you can use to revert to a previous version.  If it is then maybe you shared the document with someone else by e-mail and get get an old copy of your sent e-mail.

  • STILL unanswered: "last saved by ' as a column in a file?

    Hi, the files have a property "last saved by ' updated when they are registered.

    There are a large number of options for the columns when viewing a folder in 'details' - all 'leisure' to 'last date registered' to 'last impression' - but ' last record by "is not one of these options.
    There are plenty of questions about it here on other sites, all unanswered.
    Does anyone know how to make the last saved by properties show as a detail of folder column in the Windows 7 Explorer?

    "Last saved by" is not a piece of standard metadata.  Some programs create, some do not.  It is not available to be used as a column of details.

  • Hello, I bought a monthly license paid for indesign last night and I do not understand how to play with it? When I opened the window of creative cloud, they suggested me to buy indesign (but I bought it already...) Please, help me... It's easy to al amend

    Hello, I bought a monthly license paid for indesign last night and I do not understand how to play with it? When I opened the window of creative cloud, they suggested me to buy indesign (but I bought it already...) Please, help me... This is our easy to understand for beginners like me at all

    FAQ: What should I do if I have a subscription, but my application acts as if I had a trial?

    https://forums.Adobe.com/thread/1962238

    Download/install the desktop application, connect and install applications subscription.

    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

    Creative cloud to desktop

    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Sign out, sign in | Creative office cloud app

    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Install, update, or uninstall applications

    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

  • Record the location of the document was last saved display no original location

    We just replaced our server farm terminal server.  The servers run 2008 R2 Remote Desktop services.  Adobe Acrobat XI.  All documents are in network shares.  Users work with thousands of documents per day.  When they sign a document or make changes and go save, save him location displays the last saved not location the place where the document was opened.   It wasn't the behavior with the old servers. And the protected mode is on and performed in the previous servers.

    Hi lances71288158,

    Yes, that's correct. With the latest Acrobat Reader of DC/DC, it shows that the last saved location, else you'll browse the folder. It does not save the location of the new folder.

    Kind regards

    Nicos

  • What is the last downloadable version for Adobe Reader, 11.0.08 or 11.0.09?

    What is the last downloadable version for Adobe Reader, 11.0.08 or 11.0.09?  I saw the 11.0.09 download last Friday 18 September 14 but is no longer seeing her today 22/09/14, just the 11.0.08.  In addition, after I downloaded and expanded AdbeRdr11008_en_US.exe, I'm AcroReader.msi that's posted date 23/09/2012.  I need to customize the MSI file by using the wizard XI of Adobe Customization for our business environment.  Can you direct me on where to download the last file MSI for Adobe Reader?  Thank you.

    The last MSI made available by Adobe is AdbeRdr11000_en_US.msi

    You can get the 11.0.09 http://ardownload.adobe.com/pub/adobe/reader/win/11.x/11.0.09/en_US/AdbeRdr11009_en_US.exe EXE

  • Last Mac Version for creative cloud

    I am wanting to buy the one year plan of creative cloud for $50 per month. And I was wondering what the last Mac Version I should use for creative cloud. And what the best version of Mac for this program? I have a Mac OS X 10.6.8 which is good enough?

    Hello

    Please check the details to:

    http://www.Adobe.com/products/creativecloud/tech-specs.html

    Thank you

    Kapil Malik

  • who is the last R12 version available

    Hi friends,

    Who is the last R12 version available for download. pls guide me.


    Thank you
    Rambeau

    Hello

    Electronic transmission site, you can download 12.1.1

    Oracle e-Delivery
    http://eDelivery.Oracle.com

    For 12.1.2 Please see:

    E business Suite Release 12.1.2 now available
    http://blogs.Oracle.com/stevenChan/2009/12/ebs_1212_available.html

    Kind regards
    Hussein

  • InDesign last crash at startup

    I have just updated to the latest indesign and now it crashes at startup. Any ideas on how to solve this problem?

    Here is the error report I get:

    Process: Adobe InDesign CC 2015 [979]

    Path: / Applications/Adobe InDesign 2015/Adobe InDesign 2015.app/Contents/MacOS/Adobe InDesign 2015 CC CC CC

    ID: com.adobe.InDesign

    Version: 11.4.0.90 (11400)

    Code type: X 86-64 (Native)

    Parent process:? [1]

    Responsible for: Adobe InDesign CC 2015 [979]

    User ID: 501

    Date/time: 2016-06-23 15:19:27.294-0400

    OS version: Mac OS X 10.11.5 (15F34)

    Report Version: 11

    Anonymous UUID: 0A680455-6E5D-F6C7-B4F5-E8D5F3AFA1D3

    Time since started awake: 770 seconds

    Integrity of system protection: enabled

    Crashed Thread: the queue on the Main Thread 0 shipping: com.apple.main - wire

    Exception type: EXC_BAD_ACCESS (SIGSEGV)

    Exception codes: KERN_INVALID_ADDRESS at 0 x 0000000000000000

    Note the exception: EXC_CORPSE_NOTIFY

    VM regions close to 0:

    ->

    0000000109f58000-0000000109f5d000 [20 K] __TEXT r-x/rwx SM = COW/Applications/Adobe InDesign CC 2015 / Adobe InDesign CC 2015.app/Contents/MacOS/Adobe InDesign CC 2015

    I figured this out. I went in the Adobe Indesign Cache library and deleted folder saved and data change to find all the temporary files.

  • How can I downgrade / beta version of Thunderbird back to the last working version?

    I installed the beta version of TB by mistake (a while ago - I don't know how I did it.) Must have clicked on something without reading. I am now on v30.0). I need to restore or upgrade to the latest version of work. I use TB every day for work (associated NON-TI) and have a large number of emails that serve as customer history/records, so I can't afford to lose the info. I need to get off the beta version as soon as possible even if, as I am not qualified to use and require stability or a normal working version. Help, please!

    First of all, given that you "cannot afford to lose" your emails, sure do you backups on a daily basis, reducing the risk of losing anything. If not, you really should before you proceed, see http://kb.mozillazine.org/Profile_backup , just in case.

    Your settings and emails are in your profile, which is separate from the program files. You can reinstall without affecting the profile. (Which I am basically a copy of https://support.mozilla.org/en-US/questions/991859 )

    If after that you have saved your profile, just install the latest version of Thunderbird https://www.mozilla.org/thunderbird/ or http://www.mozilla.org/thunderbird/all.html (all localized versions). That I remember we can ask you something as if you really want to install a new version.

  • I need to restore a previously saved version of a file system windows movie maker

    I accidentally saved an empty file on a Movie Maker project that I worked on for many hours of many many.   How to restore the earlier version of the file?

    I have Windows Vista Home Premium and have therefore no shadow copies.

    I tried to click with the right button on the file and the file to restore, but he came upward in option.

    Help! (Thank you)

    Hi DCKeyser,

    Since then, family vista premium does not shadow copies, you might not be able to restore the previous version of the file.

    http://Windows.Microsoft.com/en-us/Windows-Vista/previous-versions-of-files-frequently-asked-questions

    You can use your favorite search engine to search for third-party programs retrieve older files.

    Bindu R - Microsoft Support

  • InDesign CC Arab version would change English interface for...

    Goodmorning, I work with Indesign CC and since I have to manage a large number of files in the Arabic language, I installed the relevant version which has additional useful tools for work on the Arabic text. Since I'm Italian, I would work to have the interface changed in Italian (I mean all the menus and various command typed in Italian).

    To do this, I tried to solve my problem by changing its name on records 'Shortcuts InDesign sets', 'InDesign workspaces' (from 'en_AE' to 'it_IT'. This cheats worked since Adobe recently made an update on Indesign. Now, this trick no longer works!

    Can someone be so kind to help me?

    See:

    http://InDesignSecrets.com/change-UI-language-InDesign-CS6-cc.php

Maybe you are looking for