Set import and file-handling preferences

This question was posted in response to the following article: http://help.adobe.com/en_US/lightroom/using/WSA66356E1-47C3-405f-8E7F-0FD7AAEB0575.html

I imported a catalog into Lightroom 4 from PS 10 and would like to delete the import and start over.  I want to re-work the PS 10 cat. before importing to Lightroom.

Similar Messages

  • Pls help..Constructor,setter, getter and Exception Handling Problem

    halo, im new in java who learning basic thing and java.awt basic...i face some problem about constructor, setter, and getter.
    1. I created a constructor, setter and getter in a file, and create another test file which would like to get the value from the constructor file.
    The problem is: when i compile the test file, it come out error msg:cannot find symbol.As i know that is because i miss declare something but i dont know what i miss.I post my code here and help me to solve this problem...thanks
    my constructor file...i dont know whether is correct, pls tell me if i miss something...
    public class Employee{
         private int empNum;
         private String empName;
         private double empSalary;
         Employee(){
              empNum=0;
              empName="";
              empSalary=0;
         public int getEmpNum(){
              return empNum;
         public String getName(){
              return empName;
         public double getSalary(){
              return empSalary;
         public void setEmpNum(int e){
              empNum = e;
         public void setName(String n){
              empName = n;
         public void setSalary(double sal){
              empSalary = sal;
    my test file....
    public class TestEmployeeClass{
         public static void main(String args[]){
              Employee e = new Employee();
                   e.setEmpNum(100);
                   e.setName("abc");
                   e.setSalary(1000.00);
                   System.out.println(e.getEmpNum());
                   System.out.println(e.getName());
                   System.out.println(e.getSalary());
    }**the program is work if i combine this 2 files coding inside one file(something like the last part of my coding of problem 2)...but i would like to separate them....*
    2. Another problem is i am writing one simple program which is using java.awt interface....i would like to add a validation for user input (something like show error msg when user input character and negative number) inside public void actionPerformed(ActionEvent e) ...but i dont have any idea to solve this problem.here is my code and pls help me for some suggestion or coding about exception. thank a lots...
    import java.awt.*;
    import java.awt.event.*;
    public class SnailTravel extends Frame implements ActionListener, WindowListener{
       private Frame frame;
       private Label lblDistance, lblSpeed, lblSpeed2, lblTime, lblTime2, lblComment, lblComment2 ;
       private TextField tfDistance;
       private Button btnCalculate, btnClear;
       public void viewInterface(){
          frame = new Frame("Snail Travel");
          lblDistance = new Label("Distance");
          lblSpeed = new Label("Speed");
          lblSpeed2 = new Label("0.0099km/h");
          lblTime = new Label("Time");
          lblTime2 = new Label("");
          lblComment = new Label("Comment");
          lblComment2 = new Label("");
          tfDistance = new TextField(20);
          btnCalculate = new Button("Calculate");
          btnClear = new Button("Clear");
          frame.setLayout(new GridLayout(5,2));
          frame.add(lblDistance);
          frame.add(tfDistance);
          frame.add(lblSpeed);
          frame.add(lblSpeed2);
          frame.add(lblTime);
          frame.add(lblTime2);
          frame.add(lblComment);
          frame.add(lblComment2);
          frame.add(btnCalculate);
          frame.add(btnClear);
          btnCalculate.addActionListener(this);
          btnClear.addActionListener(this);
          frame.addWindowListener(this);
          frame.setSize(100,100);
          frame.setVisible(true);
          frame.pack();     
        public static void main(String [] args) {
            SnailTravel st = new SnailTravel();
            st.viewInterface();
        public void actionPerformed(ActionEvent e) {
           if (e.getSource() == btnCalculate){
              SnailData sd = new SnailData();
           double distance = Double.parseDouble(tfDistance.getText());
           sd.setDistance(distance);
                  sd.setSpeed(0.0099);
              sd.setTime(distance/sd.getSpeed());
              String answer = Double.toString(sd.getTime());
              lblTime2.setText(answer);
              lblComment2.setText("But No Exception!!!");
           else
           if(e.getSource() == btnClear){
              tfDistance.setText("");
              lblTime2.setText("");
       public void windowClosing(WindowEvent e){
                   System.exit(1);
        public void windowClosed (WindowEvent e) { };
        public void windowDeiconified (WindowEvent e) { };
        public void windowIconified (WindowEvent e) { };
        public void windowActivated (WindowEvent e) { };
        public void windowDeactivated (WindowEvent e) { };
        public void windowOpened(WindowEvent e) { };
    class SnailData{
       private double distance;
       private double speed;
       private double time;
       public SnailData(){
          distance = 0;
          speed = 0;
          time = 0;
       public double getDistance(){
          return distance;
       public double getSpeed(){
          return speed;
       public double getTime(){
          return time;
       public void setDistance(double d){
          distance = d;
       public void setSpeed(double s){
          speed = s;
       public void setTime(double t){
          time = t;
    }Pls and thanks again for helps....

    What i actually want to do is SnailTravel, but i facing some problems, which is the
    - Constructor,setter, getter, and
    - Exception Handling.
    So i create another simple contructor files which name Employee and TestEmployeeClass, to try find out the problem but i failed, it come out error msg "cannot find symbol".
    What i want to say that is if i cut below code (SnailTravel) to its own file(SnailData), SnailTravel come out error msg "cannot find symbol".So i force to put them in a same file(SnailTravel) to run properly.
    I need help to separate them. (I think i miss some syntax but i dont know what)
    And can somebody help me about Exception handling too pls.
    class SnailData{
       private double distance;
       private double speed;
       private double time;
       public SnailData(){
          distance = 0;
          speed = 0;
          time = 0;
       public double getDistance(){
          return distance;
       public double getSpeed(){
          return speed;
       public double getTime(){
          return time;
       public void setDistance(double d){
          distance = d;
       public void setSpeed(double s){
          speed = s;
       public void setTime(double t){
          time = t;

  • Writing Import and FIle Format Plug-Ins for Photoshop CS1

    Hi All,
    I have written two plug-ins (Import and File Format) which work fine using CS2. Unfortunately we need to be able to have them work in CS1 too. I downed the "Adobe Photoshop CS SDK" but when when I looked at the API document ("Photoshop API Guide.pdf"), chapters 6 and 9 are missing and there is no sample code for these plug-in types.
    Could anyone explain why this is?
    How do I write these types of plug-in's for CS1?
    Thanks for your Help
    All the Best
    Dave

    I have published
    GPL source code to many plugins all of which are compatible with Photoshop 3.0 through CS2, on Windows and Mac. Unless you are using CS2 specific features, the your Import and Format DLLs should already work with CS on Windows.
    On the Mac, the executable format changed between CS and CS2, and you would need to build a PEF plugin for CS. MPW and CodeWarrior can do that; Xcode cannot.

  • I really need to go back to the save I made a day ago, my time machine is not set up and files haven't been automatically uploading to cc is there anyway I can go back a day in saves?

    Hi, I just had an issue with a photoshop document, my mac book temporarily crashed the screen glitches and deleted some vital layers I had constructed (took half a day) I thought I could correct it and saved it a few times in a panic and now i really need to go back to the save I made a day ago, my time machine is not set up and I just realised my files haven't been automatically uploading to cc is there anyway I can go back a day in saves?

    Trevor.Dennis wrote:
    So you don't have anything like Shadow Protect running in the background?
    Video editing software only needs to save the steps taken to achieve the edit, and references the actual video files from the hard drive.  So the saved files are only tiny, and it takes very little drive space to auto save to incrementing file names.  Obviously, Photoshop files can be huge by comparison, so the only way to save with a different file name is to do it manually.
    I think most regular posters to this forum make a point of updating the file name of a large project every hour or so, and as a direct response to reading so many horror stories like your own.  The worst story I remember was from a poster whose computer had crashed half way through saving a large PSD file.  After several response, questions and answers, it turned out he was using a laptop with a failing battery.  He told us that he could see the battery was getting low, but left it and left it before finally hitting Ctrl s and running off to find the laptop's power lead. When he got back the laptop had run out of power and shut down, and his PSD file was lost forever.  He may have been a prime candidate to a computing Darwin Award, but his stupidity still did the rest of us a service so we could learn from his mistake.
    Ouch. 
    My digital audio workstation works on the same principle; it creates a backup save just in case things go wrong (which--knock on wood--hasn't happened to me) and only references audio/MIDI files that are related to the project.
    My advice is to always, always back up sensitive documents. There are lots of ways of doing this, from manually to automatically. (e.g., A lot of higher-end routers let you connect external storage via USB so you can run backup software that detects any changes to a monitored folder over a network and then backs up any changed/updated documents to the connected storage. I prefer to do it myself manually, though.)

  • How to define "All Pages" for file handling preferences

    Hi,
         Anybody knows how to define the "Pages" preference under "File Handling" in Preferences by scripting?
         Attached is an screenshot for that option in InDesign CS5 client.
         Thanks in advance

    Hi,
         Anybody knows how to define the "Pages" preference under "File Handling" in Preferences by scripting?
         Attached is an screenshot for that option in InDesign CS5 client.
         Thanks in advance

  • How do I get Import and File Format Documentation

    I requested access to the CS2 SDK spcifically requesting that I wanted to create an Import or File Format plug-in but the documentation and the sample code is missing for those kinds plug-in types. Where can I find the documentation that I need to develop these plug-ins? Thanks. Rich

    You'll have to request that separately (or again). Contact your ASN rep and tell him/her that you need access to Format and Import info. You should be sent (pending approval) the "Advanced SDK" via e-mail.

  • Which is efficient? (DB Connection and File Handling)

    Hi,
    I need to download a file(CSV file of some 100-200 KB) on click of a button in JSP.
    The contents of the file is also displayed in the JSP (say page1.jsp)in formatted way so that user can print the details instead of download.
    1st approach:
    before coming to page1, connect to DB(Oracle DB, using JDBC Connection pooling) and get all the details required to display (which will be same as the contents of file). Store the details collection framework classes. Also create a CSV file and store it at some location. On click of Download button in JSP download the stored file (Here I am again going to servlet before downloading).
    2nd approach:
    before coming to page1.jsp, connect to DB and get the details required to display in the screen but don;t create any file. On click of download again connect to DB and get the details, create the file and download it.
    Please let me what are the merits and demerits of the above mentioned approaches.
    Thanks in Advance.
    Arun.K.

    Generally set operations are almost always faster, easier, not so much resource consumable. If you can do it straght SQL do it so. Use PL/SQL only when it is really necessary. Of course there are exceptions, but these are rare enough. And remember - you can and may always try yourself to do both ways and compare.

  • Minidv import and file format

    I imported a minidv tape from camcorder. In the finder I see the files are .mov.  Should they be .dv? What's the best way to maintain original quality?
    on the clip info it says under codec: DV/DVCPRO-NTSC , Linear PCM..
    Note: Earlier today I imported another clip and that one shows also as .mov but under codec info it shows H.264. I guess I changed the settings (mayby transcoded at import).
    Anyway, I really only want to do this once and the top priority is retaining best possible quality. I don't care if it takes up a lot of space. Happy to get another drive.
    Finally, you guys keep all the events on a separate external drive? That seems reasonable to me. How about the projects? I'm not sure if they take up a lot of disc space as well. I was under the impression projects do not.
    Thanks

    Great!
    Thank you!
    I already have some events and projects on the internal HDD. If I want to move it ALL to the external HDD is it still recommended to do that within FCP X (ather than moving the folders through the finder).
    Also, if I import a lot of DV tapes (in full) is there any reason to also archive it for future needs. Seems that''s just a duplicate.
    Finally, I am more familiar with iMovie 11 which really has all the editing capability I will need for my family videos. However, I'm trying out FCP X because of quality issues with minidv import in iMovie 11. I know this may seem strange to some, but is there a way to import minidv tapes to FCP X (o get the higher quality)and then work with those .mov files in the more familiar iMovie 11 or will I experience the same quality issues?

  • Extensions and file handling in migration context

    Hello,
    background:
    i just migrated one of our apple machines from ppc to intel hardware. So at the moment both machines are still available in the same state.
    question:
    how knows mac os x how it should handle a file by default ?
    Or better the displayed Kind of a file.
    Im wondering as i have a function (inside our erp) generating a file, but on the ppc-mac this file is shown as Kind A (like supposed) in the get-info dialog BUT on the intel-mac as Kind B (new for me).
    thats kinda confusing for me as mac newbie.
    any ideas ?
    Best regards
    fidel

    already solved, the problem was not the extension itself.

  • How do I specify folder and file options for memory cards in LR4?

    Hello!
    I have read the sections Set import and file-handling preferences and Specify Auto Import settings in the manual. But they don't seem to answer my question. The other stuff that's written about importing files in Lightroom seem to only cover the import of photos to the Lightroom catalog, which is not my primary concern, although I do want them imported to the catalog as well. But before the photos can go to the Lightroom catalog they need to be improted, in other words copied over from the memory card to the local disk drive. Simply put, all I want is for Lightroom to take over the responsibility from Canon EOS Utility and behave the same way when importing/copying files to the local disk drive. How do I set up Lightroom to do just that?
    I just want this type of folder and file structure:
    J:\2010_08_02\IMG_0037.JPG
    J:\2010_08_02\IMG_0039.JPG
    J:\2010_08_22\IMG_0372.CR2
    J:\2010_08_22\IMG_0372.JPG
    J:\2010_11_29\IMG_1405.CR2
    J:\2010_11_29\IMG_1405.JPG
    J:\2011_06_17\IMG_2887.CR2
    J:\2011_06_17\IMG_2887.JPG
    ... etc!
    1. First things first, where the heck do I specify the destination folder for new photos?
    There is an option titled Show import dialog when a memory card is detected under the General tab in Preferences, but there is no folder destination option associated with this.
    2. How do I tell Lightroom to leave original file names as they are (i.e. IMG_2887.CR2) and place them in a new sub-folder (i.e. 2011_06_17) of the destination folder (J:\) named after the capture date of the photo (July 17, 2011)?
    There are a few options under the File Handling tab in the Preferences, but they don't seem to concern the importation of files to the local disk drive.
    3. This maybe should have been the first question really; is Lightroom capable of importing files from the camera or a card reader to the local disk drive at all?
    I sure would expect it to be able to do that, but from the looks of it I am not too confident about that.
    For starters I would like it to just copy my photo files, either directly from camera or from a card reader to a destination folder of my choice, in the same fashion that Canon EOS Utility does it. I don't wat to just import the files to the Lightroom catalog and start working with the files directly from camera or memory card. Hell no! It's not an external disk drive for God's sake!
    Please advise!

    I'm not sure how it is now, but there used to be a dedicated "photo downloader" in Adobe Photoshop Elements at least up to version 6. Is this still part of Photoshop Elements? Or is it just available in Adobe Bridge? I don't remember though if it only imported files to the local disk drive or if it also added them to the library/catalog.
    I've tested Downloader Pro and Lightroom 4 now for importing the photos to local disk drive. I also tested one application called Cam2PC Image Downloader.
    The latter is actually called Cam2PC Image Browser and as its name suggests it's a software for browsing and doing basic changes to the photos, an image organizer. But it has a dedicated downlaoder called Cam2PC Image Downloader that can be very useful for importing photos. It comes either as a payed version or a freeware version.
    I also tested one called Smart Photo Import. This one could be a good alternative to Downloader Pro, but I think it still needs many improvements, and it lacks a lot of the functionality of Downloader Pro. But to be fair, this does cost half as much as Downloader Pro (13 EUR or 17 USD compared to 30 USD).
    I am most impressed by Downloader Pro. It has everything I could ask for really. But I was most impressed by its speed. I've done a simple speed test to see which one is faster and here are the results.
    Downloader Pro
    324 files (162 JPG & 162 CR2)
    Max speed: 21,25 MB/s
    Time: 02:58.6
    Lightroom 4
    Set to render "Standard" previews
    324 files (162 JPG & 162 CR2)
    Max speed: N/A
    Time: 03:41.7
    Compared to Downloader Pro: 78% done at 02:58.6
    Rendering time: 04:35.5
    Total: 08:16.12
    Cam2PC Image Downloader
    324 files (162 JPG & 162 CR2)
    Max speed: N/A
    Time: 03:30.6
    The max speed is the maximum transfer speed that ever occured during the transfer, and this is not something that the application is showing on it's own, it's the highest speed that I have seen with my own eyes. Unfortunately the other applications had no way of showing the speed, only Downloader Pro could show the speed. That's why it says N/A (as in not available).
    As you can see Downloader Pro did the same job in shortest amount of time. Note that I could be transfering 2 or 3 cards worth of photos for the time it takes Lightroom to transfer just one.
    The memory card was full when I started the test. It was a 4 GB Sandisk Ultra 30 MB/s card. The card reader was a Lexar USB 3.0 Professional. Although it was connected to a USB 2.0 port on Intel chipset motherboard (Intel X38, ICH9R). The destination folder was set to Desktop\(name of the application) on a Seagate 500 GB SATA (ST3500320AS) disk. All done on a Windows Vista PC with SP2.
    One way to make Lightroom do this job more quickly is to choose "minimum" as previews rendering option. This way it doesn't spend as much time rendering the photos after being copied to the disk drive. Now, I have not tested this but I believe that Lightroom can start a second import of a second memory card whilst the first one is being copied. I'm not sure how it would affect the speed though, and you would need two card readers for this.
    I wish I could skip rendering previews alltogether. I like to leave adding photos to the catalog and rendering previews for the last step. This is because it takes so long time and I like to use 1:1 previews, so I like leaving Lightroom to do this job in the morning or over the night.
    I have learned to use prests now in the import dialog of Lightroom. So now it should not be a problem if I always want to copy new photos to the same location. If this location is changed I can recall it simply by choosing my preset. This is very handy.
    All in all, Lightroom is very good at importing photos from camera or from a memory card reader to the local disk drive. But it's now my preferred way of importing photos to the computer. Which is why I have decided to purchase Downloader Pro. Thanks all for your help. I appreciate it!

  • Set top and bottom inset spacing values in Text Frame Options via jsx script

    I am looking for a way to set the top and bottom inset spacing values only to 2 points in Text Frame Options via a .jsx scrpt.
    For years, I have used a script that sets Preferences, such as:
    with(app.storyPreferences){
        opticalMarginAlignment = false;
        opticalMarginSize = 12;                // pts
    I would like to add the code to this same script that would make Top = 0p2 and Bottom 0p2 but leave Left and Right as 0p0.
    Any help would be greatly appreciated.

    Here is the full .jsx file that we now use to set preferences.
    Ideally, this could be modified to include setting any text frame created to have 0p2 inset Top and Bottom, but 0p0 Left and Right:
    //ApplicationTextDefaults
    //An InDesign CS2 JavaScript
    //Sets the application text defaults, which will become the text defaults for all
    //new documents. Existing documents will remain unchanged.
    with(app.textDefaults){
        alignToBaseline = false;        // align to baseline grid
        try {
    //        appliedFont = app.fonts.item("Times New Roman");
            appliedFont = app.fonts.item("Helvetica");
        catch (e) {}
        try {
            fontStyle = "Medium";
        catch (e) {}
        autoleading = 100;
        balanceRaggedLines = false;
        baselineShift = 0;
        capitalization = Capitalization.normal;
        composer = "Adobe Paragraph Composer";
        desiredGlyphScaling = 100;
        desiredLetterSpacing = 0;
        desiredWordSpacing = 100;
        dropCapCharacters = 0;
        if (dropCapCharacters != 0) {
            dropCapLines = 3;
            //Assumes that the application has a default character style named "myDropCap"
            //dropCapStyle = app.characterStyles.item("myDropCap");
        fillColor = app.colors.item("Black");
        fillTint = 100;
        firstLineIndent = "0pt";
    //    firstLineIndent = "14pt";
        gridAlignFirstLineOnly = false;
        horizontalScale = 100;
        hyphenateAfterFirst = 3;
        hyphenateBeforeLast = 4;
        hyphenateCapitalizedWords = false;
        hyphenateLadderLimit = 1;
        hyphenateWordsLongerThan = 5;
        hyphenation = true;
        hyphenationZone = "3p";
        hyphenWeight = 9;
        justification = Justification.leftAlign;
        keepAllLinesTogether = false;
        keepLinesTogether = true;
        keepFirstLines = 2;
        keepLastLines = 2;
        keepWithNext = 0;
        kerningMethod = "Optical";
        kerningValue = 0;
        leading = 6.3;
    //    leading = 14;
        leftIndent = 0;
        ligatures = true;
        maximumGlyphScaling = 100;
        maximumLetterSpacing = 0;
        maximumWordSpacing = 160;
        minimumGlyphScaling = 100;
        minimumLetterSpacing = 0;
        minimumWordSpacing = 80;
        noBreak = false;
        otfContextualAlternate = true;
        otfDiscretionaryLigature = true;
        otfFigureStyle = OTFFigureStyle.proportionalOldstyle;
        otfFraction = true;
        otfHistorical = true;
        otfOrdinal = false;
        otfSlashedZero = true;
        otfSwash = false;
        otfTitling = false;
        overprintFill = false;
        overprintStroke = false;
        pointSize = 6.3;
    //    pointSize = 11;
        position = Position.normal;
        rightIndent = 0;
        ruleAbove = false;
        if(ruleAbove == true){
            ruleAboveColor = app.colors.item("Black");
            ruleAboveGapColor = app.swatches.item("None");
            ruleAboveGapOverprint = false;
            ruleAboveGapTint = 100;
            ruleAboveLeftIndent = 0;
            ruleAboveLineWeight = .25;
            ruleAboveOffset = 14;
            ruleAboveOverprint = false;
            ruleAboveRightIndent = 0;
            ruleAboveTint = 100;
            ruleAboveType = app.strokeStyles.item("Solid");
            ruleAboveWidth = RuleWidth.columnWidth;
        ruleBelow = false;
        if(ruleBelow == true){
            ruleBelowColor = app.colors.item("Black");
            ruleBelowGapColor = app.swatches.item("None");
            ruleBelowGapOverprint = false;
            ruleBelowGapTint = 100;
            ruleBelowLeftIndent = 0;
            ruleBelowLineWeight = .25;
            ruleBelowOffset = 0;
            ruleBelowOverprint = false;
            ruleBelowRightIndent = 0;
            ruleBelowTint = 100;
            ruleBelowType = app.strokeStyles.item("Solid");
            ruleBelowWidth = RuleWidth.columnWidth;
        singleWordJustification = SingleWordJustification.leftAlign;
        skew = 0;
        spaceAfter = 0;
        spaceBefore = 0;
        startParagraph = StartParagraph.anywhere;
        strikeThru = false;
        if(strikeThru == true){
            strikeThroughColor = app.colors.item("Black");
            strikeThroughGapColor = app.swatches.item("None");
            strikeThroughGapOverprint = false;
            strikeThroughGapTint = 100;
            strikeThroughOffset = 3;
            strikeThroughOverprint = false;
            strikeThroughTint = 100;
            strikeThroughType = app.strokeStyles.item("Solid");
            strikeThroughWeight = .25;
        strokeColor = app.swatches.item("None");
        strokeTint = 100;
        strokeWeight = 0;
        tracking = 0;
        underline = false;
        if(underline == true){
            underlineColor = app.colors.item("Black");
            underlineGapColor = app.swatches.item("None");
            underlineGapOverprint = false;
            underlineGapTint = 100;
            underlineOffset = 3;
            underlineOverprint = false;
            underlineTint = 100;
            underlineType = app.strokeStyles.item("Solid");
            underlineWeight = .25
        verticalScale = 100;
    //Units & Increments preference panel
    //Must do this to make sure our units that we set are in points. The vert and horiz
    //units that get set default to the current measurement unit. We set it to points
    //so we can be sure of the value. We'll reset it later to the desired setting.
    with(app.viewPreferences){
        horizontalMeasurementUnits = MeasurementUnits.points;    // Ruler Units, horizontal
        verticalMeasurementUnits = MeasurementUnits.points;        // Ruler Units, vertical
    //General preference panel
    with(app.generalPreferences){
        pageNumbering = PageNumberingOptions.section;    // Page Numbering, View
        toolTips = ToolTipOptions.normal;                    // Tool Tips
    // Not supported in CS4
    //    toolsPalette = ToolsPaletteOptions.doubleColumn;    // Floating Tool Palette
        completeFontDownloadGlyphLimit = 2000;                // Always Subset Fonts...
        try {
            //Wrapped in try/catch in case it is run with CS4 and earlier to avoid the error
            preventSelectingLockedItems = false;                // Needed for CS5+
        catch (e) {}
    //Type preference panel
    with (app.textEditingPreferences){
        tripleClickSelectsLine = true;    // Triple Click to Select a Line
        smartCutAndPaste = true;        // Adjust Spacing Automatically when Cutting and Pasting Words
        dragAndDropTextInLayout = false;    // Enable in Layout View
        allowDragAndDropTextInStory = true;    // Enable in Story Editor
    with(app.textPreferences){
        typographersQuotes = true;            // Use Typographer's Quotes
        useOpticalSize = true;                // Automatically Use Correct Optical Size
        scalingAdjustsText = true;            // Adjust Text Attributes when Scaling
        useParagraphLeading = false;    // Apply Leading to Entire Paragraphs
        linkTextFilesWhenImporting = false;    // Create Links when Placing Text and Spreadsheet Files
    // Missing following (Font Preview Size, Past All Information/Text Only)
    //Advanced Type preference panel
    with(app.textPreferences){
        superscriptSize = 58.3;                // Superscript, size
        superscriptPosition = 33.3;            // Superscript, position
        subscriptSize = 58.3;                // Subscript, size
        subscriptPosition = 33.3;            // Subscript, position
        smallCap = 70;                        // Smallcap
    with(app.imePreferences){
        inlineInput = false;                // Use Inline Input for Non-Latin Text
    //Composition preference panel
    with(app.textPreferences){
        highlightKeeps = false;                    // Keep Violations
        highlightHjViolations = false;            // H&J Violations
        highlightCustomSpacing = false;            // Custom Tracking/Kerning
        highlightSubstitutedFonts = true;    // Substituted Fonts
        highlightSubstitutedGlyphs = false;    // Substituted Glyphs
        justifyTextWraps = false;                // Justify Text Next to an Object
        abutTextToTextWrap = true;                // Skip by Leading
        zOrderTextWrap = false;                    // Text Wrap Only Affects Text Beneath
    //Units & Increments preference panel
    with(app.viewPreferences){
        rulerOrigin = RulerOrigin.spreadOrigin;                    // Ruler Units, origin
    //    These are set at the end of the script after all the changes have been made
    //    horizontalMeasurementUnits = MeasurementUnits.points;    // Ruler Units, horizontal
    //    verticalMeasurementUnits = MeasurementUnits.inches;        // Ruler Units, vertical
        pointsPerInch = 72;                    // Point/Pica Size, Points/Inch
        cursorKeyIncrement = 1;                // Keyboard Increment, Cursor Key
    with(app.textPreferences){
        baselineShiftKeyIncrement = 2;    // Keyboard Increment, Baseline Shift
        leadingKeyIncrement = 2;        // Keyboard Increment, Size/Leading
        kerningKeyIncrement = 20;            // Keyboard Increment, Kerning
    //Grids preference panel
    with(app.gridPreferences){
        baselineColor = UIColors.lightBlue;    // Baseline Grid, Color
        baselineStart = 48;                        // Baseline Grid, Start
        baselineDivision = 6;                    // Baseline Grid, Increment Every
        baselineViewThreshold = 50;                // Baseline Grid, View Threshold
        baselineGridRelativeOption = BaselineGridRelativeOption.topOfPageOfBaselineGridRelativeOption;    // Baseline Grid, Relative To
        gridColor = UIColors.lightGray;            // Document Grid, Color
        horizontalGridlineDivision = 12;    // Document Grid, Horizontal, Gridline Every
        horizontalGridSubdivision = 12;            // Document Grid, Horizontal, Subdivisions
        verticalGridlineDivision = 12;            // Document Gird, Vertical, Gridline Every
        verticalGridSubdivision = 12;            // Document Grid, Vertical, Subdivisions
        gridsInBack = true;                        // Grids in Back
        documentGridSnapto = false;                // snap to grid or not
        documentGridShown = false;                // show document grid
    //Guides & Pasteboard preference panel
    with(app.documentPreferences){
        marginGuideColor = UIColors.violet;                // Color, Margins
        columnGuideColor = UIColors.magenta;            // Color, Columns
    with(app.pasteboardPreferences){
        bleedGuideColor = UIColors.fiesta;                // Color, Bleed
        slugGuideColor = UIColors.gridBlue;                // Color, Slug
        previewBackgroundColor = UIColors.lightGray;    // Color, Preview Background
        minimumSpaceAboveAndBelow = 72;                    // Minimum Vertical Offset
    with(app.viewPreferences){
        guideSnaptoZone = 4;                            // Snap to Zone
    with(app.guidePreferences){
        guidesInBack = false;                            // Guides in Back
    //Dictionary preference panel
    with(app.dictionaryPreferences){
        composition = ComposeUsing.both;    // Hyphenatin Exceptions, Compose Using
        mergeUserDictionary = false;    // Merge User Dictionary into Document
        recomposeWhenChanged = true;    // Recompose All Stories When Modified
    // Missing (Lang, Hyph, Spelling, Double Quotes, Single Quotes)
    //Spelling preference panel
    with(app.spellPreferences){
        checkMisspelledWords = true;                    // Find, Misspelled Words
        checkRepeatedWords = true;                        // Find, Repeated Words
        checkCapitalizedWords = true;                    // Find, Uncapitalized Words
        checkCapitalizedSentences = true;                // Find, Uncapitalized Sentences
        dynamicSpellCheck = true;                        // Enable Dynamic Spelling
        misspelledWordColor = UIColors.red;                // Color, Misspelled Words
        repeatedWordColor = UIColors.green;                // Color, Repeated Words
        uncapitalizedWordColor = UIColors.green;    // Color, Uncapitalized Words
        uncapitalizedSentenceColor = UIColors.green;    // Color, Uncapitalized Sentences
    //Autocorrect preference panel
    with(app.autoCorrectPreferences){
        autoCorrect = true;                            // Enable Autocorrect
        autoCorrectCapitalizationErrors = false;    // Autocorrect Capitalization
    // Missing (Language, Misspelled word pairs)
    //Display Performance preference panel
    with(app.displayPerformancePreferences){
        defaultDisplaySettings = ViewDisplaySettings.typical;    // Preserve Object-Level
        persistLocalSettings = false;
    // Missing (antialiasiing, greek below
    //Story Editor Display preference panel
    with(app.galleyPreferences){
        textColor = InCopyUIColors.black;                // Text Color
        backgroundColor = InCopyUIColors.white;            // Background
        smoothText = true;                                // Enable Anti-Aliasing
        antiAliasType = AntiAliasType.grayAntialiasing;    // Type
        cursorType = CursorTypes.standardCursor;    // Cursor Type
        blinkCursor = true;                                // Blink
    // Missing (Font, Size, Line Spacing & Theme)
    //File Handling preference panel
    with(app.generalPreferences){
        includePreview = true;                        // Always Save Preview Images with Doc
        previewSize = PreviewSizeOptions.medium;    // Preview Size
    with(app.clipboardPreferences){
        preferPDFWhenPasting = false;                // Prefer PDF When Pasting
        copyPDFToClipboard = true;                    // Copy PDF to Clipboard
        preservePdfClipboardAtQuit = false;            // Preserve PDF Data at Quit
    // Missing (Enable Version Cue)
    //    Optical margin (hanging punctuation, outside margins)
    with(app.storyPreferences){
        opticalMarginAlignment = false;
        opticalMarginSize = 12;                // pts
    //Wrap Up (do at end of script)
    //Units & Increments preference panel
    //Must do this to make sure our units that we set are in points. The vert and horiz
    //units that get set default to the current measurement unit. We set it to points
    //so we can be sure of the value. We'll reset it later to the desired setting.
    with(app.viewPreferences){
        horizontalMeasurementUnits = MeasurementUnits.picas;    // Ruler Units, horizontal
        verticalMeasurementUnits = MeasurementUnits.inches;    // Ruler Units, vertical
    //    These two flags are turned off to avoid the error message about
    //    missing image links when InDesign opens an ad. This can especially
    //    be a problem when doing batch processes.
    with(app.linkingPreferences){
        checkLinksAtOpen = false;            // checkbox: true/false
        findMissingLinksAtOpen = false;        // checkbox: true/false

  • Make a FileChannel from file handle

    I have native file handle ( void* fileHandle ) , I want a java.nio.channels.FileChannel for the same.
    I am working on windows.
    The native library that I am using claims to be cross platform ( pismo file mount ).
    I am not sure if this is always equivalent to FileDescriptor.handle
    Something I found :
    http://www.kfu.com/~nsayer/Java/jni-filedesc.html
    JNIEXPORT void JNICALL Java_Example_prepare_1fd(JNIEnv *env, jclass _ignore, jstring filename, jobject fdobj) {
      jfieldID field_fd;
      jclass class_fdesc;
      int fd;
      char *fname;
      fname = (*env)->GetStringUTFChars(env, filename, NULL);
      fd = open(fname, O_RDWR | O_NONBLOCK);
      (*env)->ReleaseStringUTFChars(env, filename, fname);
      class_fdesc = (*env)->GetObjectClass(env, fdobj);
      field_fd = (*env)->GetFieldID(env, class_fdesc, "fd", "I");
      (*env)->SetIntField(env, fdobj, field_fd, fd);
    }In this only the filedescriptor is set not the file handle.
    Looking at the code below
    java.io.FileDescriptor
    public boolean valid() {
            return ((handle != -1) || (fd != -1));
    }it seems initializing either file handle
    or file descriptor should work. So for my case just setting the FileDescriptor.handle should work?!
    Because what I have from the native side is just the file handle.
    I can test my assumption for windows (may be linux if i have patience) .
    But what I want to know is if this is a rule of thumb, and will work on all platforms.
    That is, setting only one of filedescriptor (java.io.FileDescriptor.fd ) or file handle (java.io.FileDescriptor.handle)
    will work on all platforms ?
    After that I suppose I'll just
    public FileChannel getFileChannel(long fileHandle){
        FileDescriptor fileDescriptor = new FileDescriptor();
        setFileHandle(fileDescriptor,fileHandle);// some native method which sets java.io.FileDescriptor.handle = fileHandle
        return new FileInputStream(fileDescriptor).getChannel();
    }Any hint, suggestion, link would be appreciated.

    What I found of net, and in src.zip that I have
    FileDescriptor has two feilds, long handle, and int fd;
    But what I got from
    http://elliotth.blogspot.com/2005/08/javaiofiledescriptor-on-win32.html
    It says that it's so only on windows and on linux there is only int fd.
    @ejp
    thanks for a quick pointer

  • Moved my library to an external hard drive. Now I get this message when trying to import video: Cannot start ingest because there is no storage location set. Please set one under Storage in Preferences and try again.

    I recently moved my iMovie Library and all of its contents to an external hard drive.  I then erased the library and all of its contents from my iMac HD and created a new library.  Now when I try to import video from my DV camera I get this message: Cannot start ingest because there is no storage location set. Please set one under Storage in Preferences and try again.  There is no way to set a storage location in Preferences.  I have chosen an Event in the middle drop down box.  But it still will not import.  Any help will be greatly appreciated.

    My iTunes library is set up the way I said in the top post and works totally fine.
    Yes, and that is the default structure to which I was referring.  iTunes will organize it that way automatically unless people do start changing settings (in which case they should know what they are doing and how iTunes works with library files and media structure.)
    Both ways work, the advantages of mine would be that should iTunes try looking fo a library, it will always be in the default location.
    It makes people think they have to change media location in preferences.  They do not unless they want to relocate media only and leave other things on their internal drive (in which case there is no point in copying library files to the external, and you certainly wouldn't want to then delete them from your internal).
    Downside is that then should someone move their iTunes library to anther computer they need to remember to get those library files on the external hard drive.
    Just copy the whole iTunes folder and it will get the library files to the other drive in one step, along with all the other files.
    Your post has good stuff but it makes a move appear intimidating and look like people have to do a lot of organizing to move the collection.  It also throws in  extra steps (namely altering preference settings) that could cause confusion or even make a mess of things.  If people leave iTunes to default preference settings (which most people do) the move summarizes into a short line:  Copy a folder and hold an extra button the next time you start iTunes.
    Note that the instructions in the link I provided earlier do also include many steps, but those are to ensure that everybody does have it all organized correctly before simply copying the iTunes folder.  In the end it is just a simple action.

  • How can I auto export a PDF File using the "Smallest File Size" preset and set the Exported File Name based on information from an Imported PDF?

    Greetings all,
    I am trying to create a script to automate a PDF export process for my company for inDesign. I’m fairly new to inDesign itself and have no previous experience with javascript, although I did take C++ in high school and have found it helpful in putting this code together.
    We have an inDesign template file and then use the Multi-page PDF importer script to import PDF files. We then have to export two version of each file that we import, then delete the imported file and all of the pages to reset the template. This has to be done for nearly 1000 pdf files each month and is quite tedious. I’m working on automating the process as much as possible. I’ve managed to piece together code that will cleanup the file much quicker and am now trying to automate the PDF exports themselves.
    The files are sent to us as “TRUGLY#####_Client” and need to be exported as “POP#####_Client_Date-Range_North/South.pdf”
    For example, TRUGLY12345_Client needs to be exported as POP12345_Client_Mar01-Mar31_North and POP12345_Client_Mar01-Mar31_South.
    There are two templates built into the template file for the north and south file that are toggled easily via layer visibility switches. I need to get a code that can ideally read the #s from the imported Trugly file as well as the Client and input those into variables to use when exporting. The date range is found in the same place in the top right of each pdf file. I am not sure if this can be read somehow or if it will have to be input manually. I can put North or South into the file name based on which template layer is visible.
    I am not sure how to go about doing this. I did find the following code for exporting to PDF with preset but it requires me to select a preset and then type the full file name. How can I set it to automatically use the “Smallest File Size” preset without prompting me to choose and then automatically input some or preferably all of the file name automatically? (If the entire filename is possible then I don’t even want a prompt to appear so it will be fully automated!)
    PDF Export Code (Originally from here: Simple PDF Export with Preset selection | IndiSnip [InDesign® Snippets]):
    var myPresets = app.pdfExportPresets.everyItem().name;
    myPresets.unshift("- Select Preset -");
    var myWin = new Window('dialog', 'PDF Export Presets');
    myWin.orientation = 'row';
    with(myWin){
        myWin.sText = add('statictext', undefined, 'Select PDF Export preset:');
        myWin.myPDFExport = add('dropdownlist',undefined,undefined,{items:myPresets});
        myWin.myPDFExport.selection = 0;
        myWin.btnOK = add('button', undefined, 'OK');
    myWin.center();
    var myWindow = myWin.show();
    if(myWindow == true && myWin.myPDFExport.selection.index != 0){
        var myPreset = app.pdfExportPresets.item(String(myWin.myPDFExport.selection));
        myFile = File(File.saveDialog("Save file with preset: " + myPreset.name,"PDF files: *.pdf"));
        if(myFile != null){
            app.activeDocument.exportFile(ExportFormat.PDF_TYPE, myFile, false, myPreset);
        }else{
            alert("No File selected");
    }else{
        alert("No PDF Preset selected");
    So far my code does the following:
    1) Runs the Multi-Page PDF Import Script
    2) Runs PDF Export Script Above
    3) Toggles the Template
    4) Runs #2 Again
    5) Deletes the imported PDF and all pages and toggles template again.
    It’s close and much better than the original process which was almost 100% manual but I’d like to remove the Preset prompt from the PDF script and have it automatically select the “Smallest File Size” preset. and then if there’s a way to have it auto-fill in the file name so no user input is required at all other than selecting each file to import. (If there’s a way to setup a batch action for the multi-import script that would be even better!)
    Thanks in advance and if there’s anything else I can provide that would help please let me know! Even a nudge in the right direction will be a big help!

    If you hold down the option key, it will typically show the location. Or you can often hit option-return on the file and it will reveal the file in the Finder, instead of opening it.
    Final option is to open it, and just option-click the filename in the toolbar of Preview and it should show you the location.
    It's probably an attachment to an email you've received. If you have Mail set to cache emails and their attachments it'll be stashed in a subdirectory of ~/Library/Mail. Which is fine.

  • Product Release Date being default set to 01-Jan-2000 when exporting and importing product file

    Hi there,
    Just putting this out there to see if anyone else has experienced this problem.
    We've just redeveloped an art site that relies on the product release date to order work, newest first, by the date they added it  {tag_productlist,,,20,releasedate,true,true}
    However, we've hit an issue whereby the 'release date' field is set to 01-Jan-2000 when we export and then import the product file, thus chnaging the ordering. The date can't be set on the import file (unlike web apps) and we haven't changed thousands of products manually. BC support have been stumped, suggesting it's our Mac's system date, but this is set automatically and accurate...and we don't want to change the release date anyway, that should just be the date the product was originally released.
    Any thoughts or help would be greatfully received as this was a key part of the site design/development. This is the site http://hanguppictures.com
    Cheers
    Paul

    Ran into the same issue. I was using the release date to flag latest products, regardless of ordering. Unfortunately running a product import then destroyed all that work.
    Found this thread with a staff reponse regarding it not being possible to set release dates using import, but it doesn't explain why release dates get reset.

Maybe you are looking for

  • Mapping problem: IDOC - XI - File

    Hi, in my scenario (Z-IDOC - XI - File) I have problems with the mapping: Z-IDOC : ZFIBUCH1 _IDOC ___Begin ___EDI_DC40 ___Z1L061 (0..999999999) _____Z1L062 (0..999999999) example L061 18000 DE 0101 23236318 050605 EUR __L062 18000 XXX XXX __L062 1800

  • Problem with JSplitPane.setDividerPosition

    An applet has a split panel, a list of items shown to the left and a map display to the right. The problem I'm getting is that the divider bar insists on starting life in the middle. My intialisation looks like this:     protected void initGui() {   

  • Photos shown in the Package Contents are not visible in iPhoto.

    I am using iPhoto '08 (7.1.5 (378)) and have suddenly found that the last 3 years worth of photos are not displayed in iPhoto while they are still visible in the Package Contents (using Finder).  The folders (with event and image content) for 2012 th

  • Document storage

    What's the best way to store documents on iPod, 4th generation?

  • JTextField data reading problem

    Hello, I am attempting to construct a gui in which I parse data from a file into 3 different arrays, one is pure numbers the other two are strings of variables describing the data for a specific index of the data in the first array. I pass the raw da