Open a new File() by Script and set File Type to PDF fails...

Dear all
I'm creating a script to download pdf Files from a server and place them into an Indesign Document. Everything works fine except Indesign does not recocnize the file Type when attempting to place the pdf and throws an error that the downloaded PDF File can not be placed due to unknown Filter.
This is because File type apparently is set to TEXT (Creator is CARO) event though I write the file with
myFile.open('w',"PDF","CARO");
Any Idea how to
- get Indesign set the FileType of a newly generated File to PDF
or
- Change the File Type afterwards
or
- tell Indesign what filter to use when placing this File?
Thanks for your help
BTW: Indesign CS5 (7.0.4), OS X 10.6.8

Thanks John,
but I already had the encoding set to binary, that does not seem to be the problem. I can open the generated File with Acrobat, that works, only Indesign can not place it....

Similar Messages

  • How to add support for new file type.

    Using the ESDK, I would like to add support for new file type ( a new extension). this new extension will function like any other non visual code editor but will have specific syntax highlighting, code folding and explorer.
    I am trying ot figure out if I need to create a new editor or use existing JDeveloper code editor and add support for new file type. Does anyone have a high level outline on how to do this using the ESDK that is specifically targeted at adding new file type support for a text based code editor?
    I have looked at the Samples and keep going in multipe directions. It would be cool if there was an example that was how add syntax higlighting for new file type.
    Thank you

    Brian, thank you. I looked at this extension and it answered a lot of questions for me. I was going in the right direction but needed a little help and bost of confidence, this is just what I needed. I created the LanguageSupport, LanguageModel, Addin, Node and TextDocument that are specific to the new file type. I was getting hung up on how to hook this into the JDevelpoer editor. I keep thinking I have to create a custom editor but it looks like I don't have to and it looks like I can associate this file support with the editor framwork, for version 10.1.3.2, with the following in the Addin Initilize() method.
    Recognizer.mapExtensionToClass(MY_EXTENSION, MyNode.class);
    CodeEditor.registerNodeType(MyNode.class, MY_EXTENSION);
    LanguageModule.registerModuleForFileType(new MyLanguageModule(), MY_EXTENSION);
    I have done this but still not able to recognize the new file type.
    At this point, I just want to be able to recognize the new file and display it's associated icon or display a messare to the message log. I put a System.out.println("test") in the Initilize() method of my addin. then I registered MyAddin in the extension.xml. JDeveloper sees this new extension and it is loaded but I have not been able to show the test message or display the new icon when I open the new file type.
    extension.xml
    <?xml version="1.0" encoding="windows-1252" ?>
    <extension xmlns="http://jcp.org/jsr/198/extension-manifest"
               id="teisaacs.jdev.myext.MyAddin" version="1.0.0" esdk-version="1.0"
               rsbundle-class="teisaacs.jdev.myext.resources.MyResBundle">
        <name rskey="EXTENSION_NAME">My Code Editor</name>
        <owner rskey="EXTENSION_OWNER">Me</owner>
        <dependencies>
            <import version="10.1.3">oracle.jdeveloper</import>
        </dependencies>
        <hooks>
            <jdeveloper-hook>
                <addins>
                    <addin>teisaacs.jdev.myext.MyEditorAddin</addin>
                </addins>
            </jdeveloper-hook>
            <feature-hook>
                <description>My Code Editor</description>
                <optional>true</optional>
            </feature-hook>
            <document-hook>
                <documents>
                    <by-suffix document-class="teisaacs.jdev.myext.model.MySourceDocument">
                        <suffix>my</suffix>
                        <suffix>MY</suffix>
                    </by-suffix>
                </documents>
            </document-hook>
            <editor-hook>
                <editors>
                    <editor editor-class="teisaacs.jdev.myext.editor.MyEditor">
                        <name rskey="EXTENSION_NAME">My Editor</name>
                    </editor>
                    <mappings>
                        <mapping document-class='teisaacs.jdev.myext.model.MySourceDocument">         
                            <open-with editor-class="teisaacs.jdev.myrext.editor.MyEditor"
                                       preferred="true"/>
                            <open-with editor-class="javax.ide.editor.CodeEditor"/>
                        </mapping>
                    </mappings>
                </editors>
            </editor-hook>
        </hooks>
    </extension>
    public class MyAddin implements Addin {
        public static final String MY_EXTENSION = "my";
        public void initialize() {
            System.out.println("MyEditor Constructor");
            new MyLanguageModule();
            Recognizer.mapExtensionToClass(MY_EXTENSION, MyNode.class);
            CodeEditor.registerNodeType(MyNode.class, MY_EXTENSION);
            LanguageModule.registerModuleForFileType(new MyLanguageModule(), MY_EXTENSION);
    }I have added and removed the editor hook along with many other modificaitons to the extension.xml but still not recognizing the new file extension.
    Todd

  • No active layers and error when opening a new file

    I've been having this problem with my PS CS5 for awhile now. A little while ago I accidently pushed a shortcut, or something, though I can't remember what keys I pushed down because it was in a hurry. And since then I can't use the adjustments under Image or the filters. Everytime I try it looks like this;
    And when I try to open a new file it looks like this (and I tried to open a 100px x 100px file here):
    This is driving me insane, because I can pretty much do nothing right now. So please help!

    Boilerplate-text:
    As with all unexplainable Photoshop-problems you might try trashing the prefs (after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed) by pressing command-alt-shift on starting the program or starting from a new user-account.
    System Maintenance (repairing permissions, purging PRAM, running cron-scripts, cleaning caches, etc.) might also be beneficial, Onyx has been recommended for such tasks.
    http://www.apple.com/downloads/macosx/system_disk_utilities/onyx.html
    Weeding out bad fonts never seems to be a bad idea, either. (Validate your fonts in Font Book and remove the bad ones.)

  • Opening a new file in photoshopcc and the file name is displayed but no white working canvas. you can see it as a layer in the layers panel and if i draw on the grey area i can see int on the layer but not on the main screen.

    opening a new file in photoshop cc and the file name is displayed but no white working canvas. you can see it as a layer in the layers panel and if i draw on the grey area i can see int on the layer but not on the main screen.

    Graphics card is the problem.
    Trying to update drivers now.
    Thanks for your help
    john

  • Every time I open a New File from the File Menu and I open it all of my desktop items are in it. What's up with that?

    Every time I open a New File from the File Menu and I open it all of my desktop items are in it. What's up with that?

    This is configured in Finder preferences under the General icon. You can make some changes to that behavior.

  • When i open a new document, my "width" and "lenght" add two zeros automatically to file size??? For example basic A4 size in mm is 210 00mm x 297 00mm? And i can´t do nothing about it! Why on earth?

    When i open a new document, my "width" and "lenght" add two zeros automatically to file size??? For example basic A4 size in mm is 210 00mm x 297 00mm? And i can´t do nothing about it! Why on earth?
    This "error note" must have something to do about it?

    elppaelo,
    You may try the list.
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save curent artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • When I minimize a window in INDD and then open a new file, my minimized window pops back up. How do I keep it minimized?

    When I minimize a window in INDD and then open a new file, my minimized window pops back up. How do I keep it minimized?

    amandaecarroll wrote:
    How do I keep it minimized?
    Actually, I suspect you can't. You get various behaviors based on a combination of settings in Preferences > Interface; namely Open Documents as Tabs and Enable Floating Document Window Docking; but it doesn't seem to make much sense as far as I can tell. Throw in the additional "application frame" wildcard on a Mac, and even just exploring the effects of the settings and drawing conclusions about them gets tricky. It sounds like you've got your windows floating, whereas I suspect many if not most users have opted for the more structured and seemingly more logical tabbed/docked method, in which case they haven't encountered your issue and don't really understand it. One might ask; if your new/current document is "in front" then what difference does it make if others behind it are minimized, maximized, or something in between?

  • When I click "File" and then "New" it keeps opening a new file as a layer and not a background. RGB is selected as the mode.

    When I click "File" and then "New" it keeps opening a new file as a layer and not a background. RGB is selected as the mode.
    With new files opening as a layer and not a background I'm not able to create multiple layers and it wont let me convert the layer to the background.
    How did this happen. I used PS just yesterday and had no problems. Today my computer did mandatory updates and now this.

    Yes. You are using the Ellipse Tool's Pixel option. So it is laying down pixels as it is supposed to do without creating a layer.
    Choose the Shape option:
    Also Layer menu > New Layer creates layers and the curled paper at the bottom of your Layers palette also creates a New Layer. I hope those work.

  • Black window is open in background every time I open a new file

    Hi There,
    Every time I open a new file in photoshop CS6, it forces another window in the background to open.
    Please can you tell me how to disable this, as it is very annoying and I hate working in tabs.
    Also, how do I open all new files at 100%?
    Thanks

    I do not use a Mac but I do use floating windows on a PC.  I also know that there is some way to turn off Photoshop's main windows frame on a Mac.  That frame may be what you see as the black window. Try turning off Photoshop's frame.
    To have Photoshop Open new and existing documents from Photoshop's are 100% you need to set up a open event and have ir use an Action or Script the will set view actual pixels 100% zoom.  Look a menu File>scripts>Script Events Manager.... that is where you enable events and set up their handlers.

  • [SOLVED] KDE switches activities when opening a new File

    First off, I've been using KDE Plasma Workspaces for a few months now, and for the most part am largely satisfied.  Thanks to both the developers of KDE and to the contributors on Arch who made setting everything up a breeze.
    One thing that does annoy me however is how it switches Activities when opening  a new file, if the default application already has a running instance.  For instance, say I have one Activity which I am using as a development environment and have Kate open to view source.  Now I switch to a second Activity where I am working on editing style sheets for my web page and again wish to use Kate.  If I open Dolphin and click on one of my style sheets (launching Kate as the default editor) I will be switched back to my first Activity and have the style sheet opened in the already running instance of Kate. 
    To me this behavior is not ideal, I would rather have the DE spawn a new instance of kate for that Activity.  I've perused through some of the settings options but haven't seen anything obvious.
    Last edited by brewlius_cesar (2013-08-14 10:29:32)

    Thanks for the response schmidtbag, but these are both suggestions for opening a file in an existing instance of Kate, when I am looking to instead spawn a new instance (at least for the current Activity).  Also, these suggestions are specific to Kate, where I would like this behavior to extend across KDE.
    Maybe I am just making a big fuss over nothing,  but for me it seems more appropriate to spawn a new instance of a program if I click on a file from a file browser, such as Dolphin.  If I wanted to open a file in an already running instance of a program I would use Ctrl+O from that program, or drag the file over to the program as schmidtbag suggested.
    I'm thinking about reposting over at kde.org, I'll be sure to follow up back over here, no matter what the outcome is.

  • Photoshop CC 2014.2.2 program error when I place a layer or open a new file

    I have just updated to the most recent PS CC2014 version. Twice, in fact, and the same problem persists. At some point while working on a file it will become impossible to place a new layer or open a new file. Other program functions work, but these will produce an error message: "Could not complete your request because of a program error." It's very frustrating and the only solution is to restart the program which will run fine for a while and then do it again.
    Is anyone else experiencing this? Or better still, has anyone found a solution to this issue?
    Richard

    I am experiencing a similiar problem.
    Ever since I upgraded to CC I have received this error after using Photoshop for more than 5 mins, or trying to performing tasks such as: placing a linked file, copying and pasting, dragging and dropping an image or even using "File>Open"
    I did a complete system clean install of Yosemite, and reinstalled CC completely 3 times.
    Any assistance in resolving would be greatly appreciated!
    Error Log Text:
    2015:01:06 13:41:33 : tracked key 0000000000001468 of type P5_ADsc not found : 1 : REQUIRE failed
    2015:01:06 13:41:33 : /Volumes/workarea/PS_15_Mac_Daily_Retail/20141204.r.310/photoshop/main/photoshop/xcode/.. /interfaces/UTrackResourceImp.h : 137 : REQUIRE failed
    2015:01:06 13:41:33 : tracked key 00000000000010C0 of type P5_ADsc not found : 1 : REQUIRE failed
    2015:01:06 13:41:33 : /Volumes/workarea/PS_15_Mac_Daily_Retail/20141204.r.310/photoshop/main/photoshop/xcode/.. /interfaces/UTrackResourceImp.h : 137 : REQUIRE failed
    2015:01:06 13:41:33 : tracked key 0000000000000E38 of type P5_ADsc not found : 1 : REQUIRE failed
    2015:01:06 13:41:33 : /Volumes/workarea/PS_15_Mac_Daily_Retail/20141204.r.310/photoshop/main/photoshop/xcode/.. /interfaces/UTrackResourceImp.h : 137 : REQUIRE failed
    2015:01:06 13:41:33 : tracked key 0000000000000460 of type P5_ADsc not found : 1 : REQUIRE failed
    2015:01:06 13:41:33 : /Volumes/workarea/PS_15_Mac_Daily_Retail/20141204.r.310/photoshop/main/photoshop/xcode/.. /interfaces/UTrackResourceImp.h : 137 : REQUIRE failed

  • From CS to CS3 upgrade, too slow to open a New File

    my PC:
    Intel E4500
    4GB DDR2 800
    Windows Vista ultimate
    250GB HD
    768MB ram disk
    i've just upgrade the photoshop CS to CS3
    when i open a New File, the photoshop become slow and finally no response
    after 1-2 mins, the New File open ...
    how to solve this problem?

    This is a known bug and has been reported many times in the forum.
    The solution, weird as it sounds, is to make a generic printer driver your default printer. If you don't have one, download it here:
    http://www.adobe.com/support/downloads/product.jsp?product=pdrv&platform=win
    All part of the fascinating world of Photoshop CS3.

  • Hey software does not respond when I open a new file or an existing file

    Hey software does not respond when I open a new file or an existing file

    Nobody can tell you anything without system info and other technical details.
    Mylenium

  • Progrem does not respond cs5- when I open a new file or an existing file

    progrem does not respond cs5- when I open a new file or an existing file

    Nobody can tell you anything without proper system info, error messages and possibly crash logs/ system logs.
    Mylenium

  • On start-up, PS CS6 Ex opens a new file menu automatically without be prompted to do so. Huh?

    Whenever PS CS6 Ex is opened, a new file menu automatically opens without be prompted to do so. This happens whether I'm opening any type of file in PS or just opening PS without a file yet. Once PS is open, this does not reoccur when opening more files from then on, just at start-up only. It's not too big of a deal, just kinda weird.
    PS just started doing this a short time ago so I'm guessing it's a Preference setting but can't figure which one.  

    Thanks for trying but this did not help. I assume you meant for me to open PS CS6 / Window / Workspace & select a new workspace such as Photography or 3D, etc. Then re-open PS & change Preferences / General / Reset all warning dialogue. None of that changed anything.
    Below is what happens when I open PS 64-bit; the New file dialog opens. This happens when open PS with a pre-selected file or just launching PS. I also have PS CS6 32-bit on my PC & this does NOT occur when it is launched.
    Still need some help.

Maybe you are looking for

  • How to update Adobe Illustrator 10.0.3 to be compatible with windows 7?

    How to update Adobe Illustrator 10.0.3 to be compatible with windows 7?

  • No active external product for the fuzzy search (FBL1N)

    Hi, I am in transaction FBL1N and want to search the vendor by F4 help. 1.  When I hit F-4, the Search window appears. 2.  It gives an pop-up message "No active external product for the fuzzy search". 3.  When we open the help for the pop-up message

  • How can I add titles to a slideshow?

    When I do a slide shows using iPhoto 6 I would like to find a way of adding titles to the individual slides as it can be easy done in iMovie. Thus far I wasn't be able to find an intelligent way to do it. In the slideshow settings titles can be added

  • Contact not loaded in Messenger Express' Composer

    Hi, My iMS version is as follows: - iPlanet Messaging Server 5.2 HotFix 1.09 (built Jan 7 2003) libimta.dll 5.2 HotFix 1.09 (built 15:05:46, Jan 7 2003) Microsoft Windows 2000 version 5.0 Service Pack 4 (Build 2195) And I recently encountered problem

  • Power Problems- Where's the "Book" in my Powerbook?

    I recently purchased a PowerBook 180c, and started it up. It couldn't find any System Software, so I placed in the software installation disks that came with it. When I tried to install, it couldn't find the hard drive! I have contacted the person I