UNIX style paths on Mac OS X

The javadoc for com.adobe.ids.links.LinkOperations.getFilePath() says "Returns: The file path (colon delimited on the Mac OS). (String or File)". This means that when running on OS X I get paths like "Macintosh HD:Users:francis:Code:Bright:bluebooks:trunk:testdata:glacier.jpg", which aren't very useful when working in Java because they aren't what the Java APIs expect. For example, new java.io.File(link.getFilePath()).getName() won't work because java.io.File expects UNIX style (slash-delimited) file paths.
Is there any way of getting the linked file path as a UNIX path? Or is there a method in the InDesign API that will convert colon-delimited paths to UNIX-style paths?
Thanks,
Francis

yeah, this is interesting.... I'm actually connected to our university with VPN now and I wonder what the path would be for that sort of "generic" dfs folder - i'm experimenting...
It does make it look like it's possible...however I keep reading that mac os x's samba doesn't recognize dfs paths.
I've been able to bind the computers to Active Directory - that's not an issue and SMB is checked - but the dfs paths return an error - I can connect using the old UNC path - but that's not where the drives actually are/will be anymore.

Similar Messages

  • How do I create Required UNIX Groups  in my Mac OS X version 10.3.9 ?

    Hi there,
    How do I create Required UNIX Groups in my Mac OS X version 10.3.9 ?
    During my Oracle 10g client installation, the doc. reads, "Start Workgroup Manager (/Applications/Server/Workgroup". But I don't see this server directory in my system.
    Thnaks in advance.
    siva

    Hi siva
    you can use the commandline nicl for this. It is described in the install docs that come with the database.
    regards,
    Ronald.
    http://homepage.mac.com/ik_zelf/oracle

  • Unix style commandos in perl script OEM agent 10.2.05

    Hi,
    Is it possible to execute unix style command's like ps on a Windows server? Looking at the perl scripts in $OEM_AGENT/sysman/emd/scripts I see unix style command's. Is OEM converting those command's to Windows equivalents?
    I've a perl script which has to be run against Linux and Windows servers and I'm hoping the agent will execute those Unix command (it is only a ps command) on a Windows machine.
    regards,
    Ivan

    Ivan,
    Have you considered using Cygwin?
    http://www.cygwin.com
    Regards,
    - Loc

  • Plugin path in MAC OS

    Anyone know how to find the AI plugin path on Mac?
    On Windows, we look in the registry, but how about in MAC?

    Installer in MAC is dicey. MAC people are not used to traditional next-next installers, but more of double click dmg, drag drop the app into application folder types. There are few softwares like package maker, etc. Check this out WhiteBox - Packaging  .  Building installer using qt is really a headache.
    For plugin location, you can assume /Applications/Adobe/Adobe Illustrator/Plugins.localized. If you don't find this directory, you can prompt user for install dir.
    For windows use innosetup, beats everything else handsdown.

  • How to do Pharagraph Style with wireless mac keyboard?

    I used to do shortcuts normally in InDesign like Pharagraph Style or Character Style with extended mac keyboard, but now with wireless keyboard (the short keyboard) can't find how to do it!!

    You must contact Kaspersky and have them provide an update. Firefox does not provide updates on behalf of Kaspersky.

  • Can we see iOS 7 color palette style / theme for Mac OS X in near future?

    Can we see iOS 7 color palette style / theme for Mac OS X in near future?

    Try your luck with the Magic Eight Ball. That will give you just as reliable an answer as you will get here.
    Seriously, nobody that knows the answer to that question will be able to post it here without breaking a non-disclosure agreement.

  • PrintWriter has started to use unix style linebreaks.

    Hello,
    I was running some text files generated under linux through a my Java program under Windows XP. Ever since then any program I write or run in Windows that uses PrintWriter will print to a file using unix style line breaks, ie. if I look at it in notepad everything appears on one line with little squares instead of line breaks. Does anyone know why Java won't use the dos line breaks anymore ?
    I remember seeing someone else who had this problem but I never found out if and how they fixed it !

    All I'm doing is putting a string into PrintWriter.println():
    String fred = "Hello !";
    String jim = "Wheee !";
    PrintWriter out = null;
    try
    out = new PrintWriter(new FileOutputStream("Stuff.txt"));
    catch (Exception x)
    System.out.println("Could not open the file Stuff.txt.");     
    return;
    out.println(fred);
    out.println(jim);The file then contains
    HelloWhee !
    with a unix line break between the Hello and Whee !
    This was not happening untill I ran a file with all unix line breaks through the program. The code did not change. Recompiling made no difference. Now ALL programs that us PrintWriter are doing this.

  • How to give the unix server path while uploading a file

    Hi All,
    Am very new to this file operations in Oracle.
    here i have a requirement like we need to upload table to unix server using oracle. I have read about File operations in Oracle but in that i did not understand one point like how and where to give the unix server path .. like username@servername and Path where that file needs to be stored.
    I have googled for file operations in oracle.. in that there are asking me to create one object like as follows
    Create or replace directory rtvms2 as 'MYDIR:'
    The MYDIR: i need to use while uploading the file .
    UTL_FILE.FOPEN('MYDIR:','Report.txt','W');
    My Question is how and where should i give my unix server information .?
    and how and in which step oracle connect to unix server and upload the file.?
    Can any one please help me.
    Thanks
    Sree

    you're close...
    (this example shows it for a windows server, but you just replace the windows directory path with a unix server path)
    CREATE OR REPLACE DIRECTORY mydir AS 'c:\myfiles';Note: This does not create the directory on the file system. You have to do that yourself and ensure that oracle has permission to read/write to that file system directory.
    Then, grant permission to the users who require access e.g....
    GRANT READ,WRITE ON DIRECTORY mydir TO myuser;Then use that directory object inside your FOPEN statement e.g.
    fh := UTL_FILE.FOPEN('MYDIR', 'myfile.txt', 'r');Note: You MUST specify the directory object name in quotes and in UPPER case for this to work as it is a string that is referring to a database object name which will have been stored in uppercase by default.
    For security reasons, Oracle requires a directory object and it is that object that points to the actual path (it's up to you to make sure that path is valid and exists on the operating system). Then the object can have read and write permissions given to relevant database users as appropriate i.e. you may want one user to only be able to read files from that location whilst another user can read and write. You still need to ensure operating system level permissions exist for that path for the operating system user under which oracle was installed (on unix that's likely to be an "oracle" user).

  • Filename path with mac?? Help

    I am trying to type in a filename path on a webform but have no clue how it works on a mac. The file is in my pictures directory...
    On my PC, I know it would be c:/Photos/wedding or something like that to get to the directory. How does this work on a mac?

    Find the file whose path you need to know using Finder
    Then right click, or ctrl-click on the file and select 'Get Info'
    A dialog will appear showing all sorts of data about the file.
    The path is shown next to 'where:'
    Also, open any finder window, right-click on a blank part of the tool bar (immediately below the title bar) and select'Customize...' now drag the 'path' button onto the tool bar. Now whener ever you need to know the absolute path of a file, just click the 'Path' button.
    More information: Mac (and all Unix operating systems) do not use Drive letters as you have probably guessed. All paths take the form....
    \volume name\folder\folder\folder\file.extension
    Finally, most of your 'special folders' such as Documents etc will live at :
    \Macintosh HD\username\Documents
    The desktop is at
    \Macintosh HD\username\Desktop
    and so on.
    Obviously the 'username' is your logon name, and 'Macintosh HD' is the volume name of your boot volume. It may be different from 'Macintosh HD'.
    I hope this helps.

  • Labview Path to Mac OS X

    Is there any information on the path from Labview 5x or 6x for Macintosh OS
    9x to the unix-like Mac OS X expected in 2001? If I purchase/register Labview
    now, will I be able to upgrade to Mac OS X without buying a whole new $2K
    package next year?
    Thanks.

    I don't know about purchasing issues, but I did see an early alpha of LabVIEW running on Mac OS X during the NI Week convention (2000).

  • Converting a shell path to mac path

    Anyone have an idea on how to turn a shell path to a mac path without using AppleScript via osasscript?
    That was my first idea, but it was dreadfully slow.
    Thanks in advance.

    This version preserevs any ':' characters by temporarily substituting it with a null byte then swapping any nulls to '/':
    <pre style="overflow: auto;font-size:small; font-family: Monaco, 'Courier New', Courier, monospace; color: #222; background: #ddd; font-size: 9px;">#!/bin/sh
    sed -ne "
    # First preserve : characters by swapping with null.
    s/:/\0/g
    # swap / with :
    s/\//:/g
    # change original : (now null) into /
    s/\0/\//g
    # If pattern space does not begin with :Volumes,
    # then prepend mac harddrive name and print.
    /^:Volumes/ ! s/^/`ls -F /Volumes | sed -ne 's/@$//p'`/p
    # But if pattern space _does_ begin with :Volumes:, just delete and print.
    s/^:Volumes://p
    </pre>
    Cole

  • SWA local path in Mac vs Windows

    Because streaming seemed to crash one of my educatonal apps, I decided to place the folder of Shockwave audio on the hard drive.  In Windows, I would write play member 35 and in member 35 the SWA link address would be  swa\loop1.swa   Now, I am converting the app to the Mac and the sound does not play. Unlike in Windows where Explorer shows the path to a file, the Mac Finder does not. I know that the Mac file system is based on Unix, so I thought using an upward slash like  swa/loop1.swa   would fix the sound for the Mac but is does not.  Can someone please tell me what the SWA link address has to be on the Mac for the app to find the SWAs within the app folder?

    If you use the pathname operator, the folder delimiter you use becomes platform agnostic. That is, you should be able to use something like
    member("swa").url = "@/swa/loop1.swa"
    and it will work regardless of the platform it is run on - you no longer need to distinguish between Mac and Windows and worry about folder delimiters

  • Common URL format for sharing file paths between Mac and Windows?

    Hi -
    I have to integrate several Macs into a Windows environment. We need to be able to copy and paste file paths to share between all machines. Is there a common URL format that can be used between the platforms?
    On Windows, I have:
    \\server\share\file
    On the Mac:
    smb://server/share/file
    Thank you for your help,
    Steve

    On Windows you have what is known as a "UNC".
    On the Mac, you have a "URL". It starts with the protocol to use "smb" then gives the path to the item using standard conventions.
    UNC is Microsoft mainly.
    The only way I know for Windows to use a URL is with an application like a web browser or ftp client.
    On the Mac, you can use UNCs but they must be modified as follows.
    In Terminal:
    smbclient \\\\servername\\sharename\\filename -U username
    And enter a password if prompted.
    Notice that you must double up the slashes. This is due to how UNIX shells treat the backslash.
    You will connect to the share, but it will only be in Terminal.

  • What is the file path in Mac 10.5

    Where does Adobe Media Player store it's files ( video ) in Mac OS 10.5?
    When you play a video over the internet, does Media Player download and store the video automatically?
    I think the app is good, but I do not want 32G of downloaded videos that I can not find and purge.
    Thanks,
    Ed

    But also, a string containing a file path isn't a file object which is what ImportOptions requires. For example:
    var myFile = new File("string showing my file path");
    var myImportOptions = new ImportOptions(myFile);

  • Unix file path not working to retrieve file

    I have an application I developed on a Windows machine to generate some XML and then later read it. Well when I generate on my Windows machine it works fine, and then I can read it with no problem. When I generate on the Unix machine, It works fine, but I can not read the file at all. The path is correct, the file is there, Java just can't read it for some reason, I get a FileNotFoundException. It gets the path from a properties file, then adds the filename to the path and tries to retrieve it. The path looks like this /pages/content/net/tool/Custom.xml and when I vi the file vi can read it fine. So anyone run across this before, not being able to read the file at all? To generate I use betwixt and to read I use digester.
    Thanks in advance.

    I am going to give you the output here, and all of the configuration info as well and the checkSlash method too. But I suspect what is happening is some kind of stream/os control is holding on to the file and not letting someone take a look at it in the application level. If it's not that then it's a permission issue, which I chmod'ed the file and made rw-rw-r-- (it was rw-r--r--)just like the files that already work. Also I winSCP'ed into the box and tried a simple overwrite with another file of the same name and got a permision denied.
    my application level exception :
    com.spectra.common.CommonException:
    /pages/content/net/tool/OpFinderCategoryReview.xml 
    (No such file or directory)
    the real exception thrown by the application:
    Caused by: java.io.FileNotFoundException:
    /pages/content/net/tool/OpFinderCategoryReview.xml 
    (No such file or directory)
    /*this method checks the file name passed in and see if it leads
    with a slash to cap on the end of the path from the properties file
    which is /pages/content/net/tool/ */
    private String checkSlash(String fileName) {
       if(fileName != null && !fileName.startsWith("/"))
         return "/"+fileName ;
       return fileName ;
    /*I use betwixt to write out the XML for me and then I try and use it but it fails . this is the way I call betwixt */
    try {
                  WizardProduct wizProduct = (WizardProduct)request.getSession().getAttribute(PricingResources.WIZARD) ;
                  String fileName = CommonUtil.checkSlash(this.createFileName(wizProduct)) ;
                  int pageId = this.createPage(wizProduct,fileName) ;
                  GenerateProduct genProduct = new GenerateProduct() ;
                   Product product = genProduct.doExecute(wizProduct, pageId) ;
                   PropertiesReader reader =  new PropertiesReader() ;
                   String path = reader.getRepositoryProps().getProperty(PricingResources.REPOSITORY_DIR) ;
                   FileWriter fileWriter = new FileWriter(new File(path + fileName));
                   BeanWriter writer = new BeanWriter(fileWriter);
                   writer.getBindingConfiguration().setMapIDs(false) ;
                   writer.enablePrettyPrint();
                   XMLIntrospector introspector = writer.getXMLIntrospector( );
                 introspector.getConfiguration().setWrapCollectionsInElement(false);
                   writer.write("product", product);
                   writer.flush();
                   writer.close() ;
                   fileWriter.close() ;
    /* The read file process works fine in every scenario EXCEPT when I generate a document from my application and then try to read it. The problem is not in reading it normally, it's reading it only on a Linux machine after I generate a doc, not on windows.
    Thanks

Maybe you are looking for

  • Dark Images Problem

    We video with 3 Sony VX2000 Cameras, input to a Panasonic MX30 mixer and record the output with a Sony TRV 950. We then export the recorded tape to iMovie 6. Our problem is the imported clips appear dark. The images from the shooting cameras, from th

  • Change derivation date ufter posting commitments and/or invoices

    Hi all, My client decided to change derivation rules of commitment and actual postings, in the midle of the year.  Is there a way to change data in the  items that was posted in the past, according to  new derivation rules ? Thanks Yaacov

  • Clip Art with Elements 11 ???

    I have never used Photoshop products before.  I bought Elements 11.  My main purpose for buying it is to use my drawings to create color and black and white clip art to sell on my education web site.  Can anyone offer assistance?  I do have a scanner

  • Auto PO for Sevices

    Dear All, Is that possible to create Auto PO For Servcies? If Yes than what are the customization steps? Best Regards Lovkesh

  • Where can i find my sinchronized recordings in Windows XP SP3?

    Hello guys, i'm in trouble with recordings that i made in my iPhone 3GS. I made an interview and i recorded it. It is about 1:57 hours of interview and i can't send it by e-mail or MMS. I saw in the manual of iTunes how to transfer the recording from