Replacing Type and Creator in InDesign Mac

Hello Everyone:
Our plant uses a process that FTPs InDesign files to Unix servers for storage and then FTPs them back down to local Macs for work. In the process the file is stripped of filetype and creator.
I have been tasked with writing a module that can fit in an InDesign plugin that will identify which version an InDesign document was created in, and then fix the type and creator. Does anyone have similar experience on Macs using the Adobe InDesign SDK?
My primary platform is Win, so any assistance I can receive would be greatly appreciated.
John

As the help for that functions says: "Windows and UNIX You cannot use file types and creators. Trying to set the type or creator of a file results in an error."

Similar Messages

  • Dreamweaver setting wrong file type and creator codes

    First of all, I'm running Mac OS X 10.5.2 on an Intel-based
    Mac, with Dreamweaver CS3 9.0 build 3481.
    I have a site defined where I connect to my web server via
    FTP. On my server, I just upgraded my forum software to PHPBB 3.0,
    which created a new /forums/ directory. My plan is to use
    Dreamweaver to download that new /forums/ directory to my local
    site where I can edit the files. Inside the forums folder are
    several types of files, like ".php" files, ".htm" files, ".gif"
    files, etc.
    So, upon downloading the /forums/ folder to my local machine
    by dragging and dropping it (in Dreamweaver) from the remote site
    to the local site, I noticed that Dreamweaver insists on setting
    HFS file type and creator codes for files it recognizes, based on
    the filename extension.
    I've connected to the same server using the Finder and
    Transmit, and copied the remote /forums/ folder over to my local
    machine. Neither of those copies have files with file types and
    creator codes set, meaning they aren't actually set on the remote
    files and that this is indeed something Dreamweaver is doing on the
    fly as it downloads the files.
    I'm wondering if there's any way possible to disable this
    behavior, and just download the files like they are on the server?
    (File extension only). To make matters worse, on my Intel-based
    Mac, it's not even setting the proper codes, as you can see in the
    following image:
    http://homepage.mac.com/mdouma46/images/dreamweaver.png
    Notice for the ".php" document, it's attempting to set a file
    type of 'TEXT' and a creator code of 'DmWr' (DreamWeaver's creator
    code), but because the Dreamweaver developers didn't bother to take
    into account the byte-ordering differences between PowerPC Macs and
    Intel Macs, the codes are written in reverse: 'TEXT' becomes
    'TXET', and 'DmWr' becomes 'rWmD'. (If you're going to use
    low-level routines such as FSSetCatalogInfo() to set the file types
    and creator codes, you need to call CFSwapInt32HostToBig() on the
    OSType values before doing so, to make sure they're in Big-endian
    format).
    Anyone know where the conversion information is stored?
    Thanks in advance.....

    Creator codes are totally deprecated in snow leopard. as for a workaround you can use something like this.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on open these_items
    repeat with this_item in these_items
    tell application "Finder"
    set the_file to POSIX path of (this_item as alias)
    tell application "System Events"
    set default application of file (the_file) to ("Main HD:Applications:Preview.app" as alias)
    end tell
    end tell
    end repeat
    end open</pre>
    save it as an application and drop files onto it to set them to open with Preview.

  • Bug on "get type and creator.vi" OSX intel

    There is a bug on LV 8.2 "get type and creator" vi
    i tried it on a G5 : perfect
    on an intel machine the file type is reversed : JPEG becomes GEPJ, AIFF becomes FFIA
    a bit annoying ...

    Hello,
    Please excuse me for not fully understanding the distinction you are drawing here.  I think you are saying that INDEPENDENTLY FILES HAVE:
    a). a type
    b). an extension
    These are somehow correlated in Windows.  When I remove the .jpg extension from a file name indeed I see the "blank icon" and right clicking the icon to expose the properties shows that it has file type "File" where it used to be "JPEG image."   When I use the Get Type and Creator.vi I still see ????.
    I would like to understand exactly the distinction you are drawing, and exactly how to see the problem you are reporting.  Please be so kind as to dictate a very specific list of instructions with which this can be reproduced.  If it requires using commands in the command line, please specify exact syntax so that isn't a hurdle in and of itself.
    I appreciate your patience and very much look forward to your next post!
    Best Regards,
    JLS
    PS - Another idea just hit me - is it possible that you have the folder options item "hide known file extensions" checked?  I think this is default in XP, and perhaps you are simply not seeing the extension of your jpg files since windows is hiding them.  If that's the case, but you DO see extension, your file names may actually be something like myFile.jpg.jpg, where the trailing .jpg are just being hidden from you.  It sounds like you're familiar with how windows distinguishes file types and extensions, but I thought I would at least throw that out there, since it is a bit subtle.
    Message Edited by JLS on 10-25-2006 01:50 PM
    Best,
    JLS
    Sixclear

  • File type and creator are backwards

    Acrobat 8 running on Intel based mac running OSX 10.4.11.
    I have Acrobat using watched folders, but the pdfs it creates have the file name and creator backwards, 'FDP' and 'ORAC'. This doesnt happen all the time, it seems to be different depending on the filename. Names beginning with P will usually be wrong, names beginning with numbers will usually be right.
    I found something here that may be the reason for it:
    http://lists.apple.com/archives/applescript-users/2006/Oct/msg00433.html
    Be interested if anyone else has found a solution for this as these pdfs copy onto our archive system, but it hasnt got a clue what to do with them as it doesnt know what they are.
    Cheers.

    Hi jackminar,
    I've tried searching for those files on my computer without any luck.  Is there a way for you to contact your contractor in order to see if he originally sent them?  Has your program ever worked upon getting it from your contractor?
    What hardware, software, or instrument drivers are you using?
    Kevin S.
    Applications Engineer
    National Instruments

  • Problems with files with no types or creator infos

    I installed Ffmegx which converts videos in differents formats.
    In order to work, that software needs extra files (mencoder, mplayer, mpeg2enc).
    After I downloaded them, the two first ones were seen as Unix Executable files
    by Mac OSX, the third is seen as a text file, and therefore cannot be used by Ffmegx.
    When I go see the type-creator infos for the 2 first ones, there is no infos for type and creator
    and there are ????? signs elsewhere.
    I am sure that I would get everything working if I only knew what to fill in (using type and creator
    changer). Anynone knows what the extensions should be ?
    P.S. This problem happens often with Mac files from internet, they loose their identity somehow on the way. Sometimes the file is downloaded as text (code) in the browser window itself ! Which I found out can be avoided by pressing ALT while clicking download. Very strange problem which happens both with Safari and FireFox. But pressing ALT doesn't help after all, because the file becomes a text file anyway, not associated with any program. Useless.
    Thanks
    louis

    Start by doing the following:
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger and Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Next, clear the LaunchServices database:
    Rebuild LaunchServices Database
    For Tiger users
    Open the Terminal application in your Utilities folder. At the prompt paste in the following command in its entirety:
    /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServic es.framework/Support/lsregister -kill -r -domain local -domain system -domain user
    Press RETURN.
    For Leopard users
    Open the Terminal application in your Utilities folder. At the prompt paste in the following command in its entirety:
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    Press RETURN.
    Now, OS X no longer uses type and creator codes to identify file types. It's all done from file extensions. OS X maintains a database of associations between documents and the applications that created them. The exception is an application which is identified by the ".app" file extension. Your system has apparently become corrupted in some way that has broken these associations, so the above is an effort to see if things can be straightened out.

  • Create Or Replace Type How can I to use ?

    Hi
    Where can I to find examples using Type (create or replace type) and call in Procedure ?

    There is a wide range of requirements one can satisfy using Oracle's advance data types.
    The complexity of which differs from one to another - which means that no single set of examples can cover the whole spectrum of how these data types can be applied.
    Exactly what do you have in mind? Do you intend to use it in an object-relational design fashion? In a PL/SQL object-orientated fashion? Simply for dealing with issues like bulk processing? Etc.
    For example, how to construct an object of an advance data type can be as simple as calling the default constructor to being as complex as discussing how to implement inherantance constructors up the chain of parent classes (types) from which the current class has been subclassed from.
    If you can provide more details on your requirements, we will better be able to answer your questions.

  • What is the best DVD Creator for a Mac Book Pro to replace iDVD?

    What is the Best DVD Creator for a Mac Book Pro to replace iDVD?  Have Maverick OS.

    I have already looked at other threads in this forum, so 'I venture forth' to ask my question here:
    I have a 44 minute carefully edited iMovie with several chapter markers. I dimly recollect that when you 'dump' the entire movie into iDVD (my version is 7.1) it should detect the markers and create buttons to link to specific scenes. Well, the 'dumping' process obviously doesn't work.
    How do you get iDVD to recognize the markers and ceate buttons to link?
    I can create with iDVD a DVD that will play the movie in its entirety. This is not suitable for my purposes. I need access via a menu to specific scenes.
    Thank you,
    Klaus

  • When I replaced my PC desktop with a Mac Mini and hooked up my HP printer to it, I discovered my other computers on the Wi-Fi network could no longer access the printer.  The manual says Maverick OS will not allow PC's to access the printer. Any thoughts?

    When I replaced my PC desktop with a Mac Mini and hooked up my HP printer to it, I discovered that my other computers on the Wi-Fi network could no longer access the printer.  The manual says Maverick OS will not allow PC's to share the printer. Does anyone else have this problem?  My printer does not have on-board Wi-Fi but, otherwise, works fine.  I shouldn't have to buy a new one.  Is there a OS patch out there that would open the printer port for my PC computers?

    I'm assuming that on the Mac, the System Preferences -> Sharing -> Printer Sharing -> [X] HP printer -> Everyone can print is selected?  That is to say, the Mac will allow anyone to print using the printer, and that you did not try to restrict who can print.
    How is your network configured?  Bonjour as a protocol will NOT cross a router boundary.  If you have 2 or more subnets active with the PCs on one subnet and the Mac on another, that would block the PCs from seeing the Mac.
    You could have multiple subnets if you have more than one router, such as an ISP provided broadband modem/router and another WiFi Router.  If the PCs are talking to one router and the Mac is talking to another, that could be a 2 subnet situation.  The additional routers must be put into bridge mode, which is done differently depending on the router.  But the basics are to diable DHCP and NAT services on the secondary router(s) having just one active router on the network.
    Also, using Bonjour Browser on my Mac, it is showing me that the printer is being advertised as using Internet Printing Protocol, so if that is something selectable on Windows, maybe you can bypass Bonjour on Windows.

  • I just replaced the hard drive for my Mac Pro, and I am trying to restore what is on my Time Capsule, but it wont connect, and only is giving me the pinwheel of death. What do i do?

    I just replaced the hard drive for my Mac Pro, and I am trying to restore what is on my Time Capsule, but it wont connect, and only is giving me the pinwheel of death. What do i do?

    You will need to boot from some alternate boot device to accomplish this, if you did not initialize the drive before installing it.
    If you have another Mac, you may be able to use FireWire target disk mode.
    If your MacBook has a DVD reader and you have a Mac OS X Installer/Utilities DVD, such as the one that shipped with it, you can boot from that DVD, answer only the "what Language" question, and wait a quarter minute for the MenuBar to be drawn. Then examine the Utilities menu or the Installer menu and Find Disk Utility.

  • Type an administrator's name and password to allow Mac OS X to make changes

    I just upgraded to Snow Leopard and now I am constantly receiving the following error message. I have seen several similar posts, but none with this Kaychain/Application. Please Help!
    "Type and administrator's name and password to allow Mac OS X to make changes.
    Mas OS X wants to use the "System" keychain.
    Username:
    Password:
    Details: Keychain: System.Keychain
    Application:PubSubAgent

    Thanks for your help. I tried that but it did not work, the error message still pops up and I am now having to reenter passwords in things like ICAL and Mail. I also tried the Keychain repair and it repaired something but did not fix the problem. Do you have any other ideas?

  • Hi, planning to buy MD101, I will most be working on photoshop, playing live/audio production, occasionally render videos, mild gaming-prototype.gta4 types..my question is mac or windows? my budget stops at MD101 and no further :/

    Hi, planning to buy MD101, I will most be working on photoshop, playing live/audio production, occasionally render videos, mild gaming-prototype.gta4 types..my question is mac or windows? my budget stops at MD101 and no further :/

    Hey thanks for the reply
    its not like i must...but i do prefer apple for build quality and the way the os uses the hardware..
    Priority of the laptop will be:
    1- Going live with it, using softwares like ableton like or garageband to trigger samples and ambient patches with MIDI keyboard.
    2- Designing on photoshop
    3 - Occasional video rendering mostly non hd but good quality like youtube 720p
    4 - Gaming when i am bored - I am not at all into gaming but i would surely love to play some
    But i want something that will be durable/storngly built and its hardware/processor good enough to run for 3-4 years.
    Now if a laptop then which one?
    Thank you

  • HT5409 I asked if AVCHD files can be played on Mac and the support site says to simply click on the icon and quick time will play it. A big lie. Just say it won't support the file type and tell us what apps to get.

    I asked if AVCHD files can be played on Mac and the support site says to simply click on the icon and quick time will play it. A big lie. Just say it won't support the file type and tell us what apps to get. anybody?

    I also had issues opening AVCHD files on case-sensitive filesystems.
    You can try these steps to solve the issue:
    Right click on the AVCHD file and select 'Show Package Contents'
    Right click on the BDMV file and select 'Show Package Contents'
    Rename index.bdm to INDEX.BDM (it seems that all files in the BDMV folder should be in UPPERCASE for Quicktime to open the AVCHD file).
    Go back twice and try again to double-click on the AVCHD file (Quicktime should open a window showing the multiple clips, as expected).

  • I have just had to replace my hard drive on my mac book pro and can now not sync my iphone which contains all my information onto the new drive, any ideas?

    I had to replace my hard drive on my mac book pro as it had died. Since getting laptop repaired I have been trying to sync my iphone with the new hard drive but it will not allow me to do this without first wanting to wipe the phone clean and put info on the hard drive onto the phone, of course there is no info on the hard drive at all. Any help will be greatly recieved.

    https://discussions.apple.com/docs/DOC-3141

  • I'm using CS5 Indesign Mac it keeps crashing when Saving or Saving As. Uninstalled and the Reinstalled program and it still crashes. Takes over 60 seconds to unfreeze. I'm using Lion 10.7.5. Any ideas?

    I'm using CS5 Indesign Mac it keeps crashing when Saving As. Uninstalled and the Reinstalled program and it still crashes. Takes over 60 seconds to unfreeze. I'm using Lion 10.7.5. Any ideas?

    reset your preferences -
    after effects:  http://helpx.adobe.com/after-effects/using/preferences.html
    flash:  http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
    illustrator:  http://helpx.adobe.com/illustrator/using/setting-preferences.html
    indesign:  https://forums.adobe.com/thread/526990
    photoshop:  https://forums.adobe.com/thread/375776

  • K450e motherboard replaced now says error code 00ce machine type and serial number invalid

    Hey guys i just got a replacement motherboard, after motherboard was replaced on bootup the computer says error code 00ce: machine type and serial number are invalid. How do i get rid of this error it was replaced by the same motherboard type that was previously in the system. How can i reset the bios or enter the serial etc? Lenovo tech support was no help.

    Hi Qjafri829,
    Welcome to Lenovo Community!
    As per the query we understood that you are facing issue with serial number invalid error in your k450e desktop.
    As the motherboard been replaced the serial number and MTM number must be updated this is a new motherboard, you can visit to the nearest authorized service center for the serial number update in the BIOS.
    Click here to open a link where you can select the country and get the exact contact support number. I’m sure
    they will be a great help.
    Hope this helps. Do post back if issue persists!
    Best regards,       
    Ashwin.S
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

Maybe you are looking for

  • Currency addition error

    Currency fields are not adding up properly when one field is null or blank (not exactly sure how the db is handling it). I am trying to add up three currency fields using workflow (before modified record saved) and using the default value. The formul

  • Print as Image changes between Adobe Reader ver7 and ver8+

    Hi, We have customers that upgraded to Adobe Reader ver8+ and are now experiencing printing issues with our printer driver (operating system is Windows XP/Vista). When they use Adobe Reader ver8 and above to print their PDF files, with "Print as Imag

  • Day 4 - possible bug

    In day 4 when I finish section "Use an inline item renderer" and when I try to increase/decrease NumericStepper I get exception with this message: TypeError: Error #1009: Cannot access a property or method of a null object reference.     at mx.contro

  • Restarting Stanby database after host crash

    Ok here is the scenario . . . the host for my Physical Standby database crashes . . . you know the janitor kick the plug out . . . How do I gracefully restart the Physical Standby database . . . My concern/paranoia/fear is that during the restating o

  • Visualizzatore di foto

    Premetto che sono un nuovo utilizzatore di iMac, vorrei sapere come si possono vedere le foto scorrendole come avviene con il visualizzatore di foto di windows. Ho provato a cliccare su una foto e si apre in anteprima, Ok. Ho provato ad importarli su