Professional Web Applications Themes

Creating local path from path with ':' seperators - Mac Programming

In article <vk9s3ppgj1g59corp.supernews.com>, "Harpstein" <mharpseapine.com> wrote: > heya, > > I've got a path like "Mac HD:Users:harpstein:" This can be converted to a FSSpec using FSMakeFSSpec. The FSSpec can be converted to a FSRef using FSpMakeFSRef > and I want to convert it to the real path of "/Users/harpstein" > > > I've found the FileManager routine FSRefMakePath, but can't figure out how > to create the FSRef from the path I have. > > Any examples would be greatly appreciated. Patrick -- Patrick Stadelmann <Patrick.Stadelmannunine.ch>...

  1. #1

    Default Re: Creating local path from path with ':' seperators

    In article <vk9s3ppgj1g59corp.supernews.com>,
    "Harpstein" <mharpseapine.com> wrote:
    > heya,
    >
    > I've got a path like "Mac HD:Users:harpstein:"
    This can be converted to a FSSpec using FSMakeFSSpec.
    The FSSpec can be converted to a FSRef using FSpMakeFSRef
    > and I want to convert it to the real path of "/Users/harpstein"
    >
    >
    > I've found the FileManager routine FSRefMakePath, but can't figure out how
    > to create the FSRef from the path I have.
    >
    > Any examples would be greatly appreciated.
    Patrick
    --
    Patrick Stadelmann <Patrick.Stadelmannunine.ch>
    Patrick Stadelmann Guest

  2. #2

    Default Re: Creating local path from path with ':' seperators

    On Thu, 21 Aug 2003, Patrick Stadelmann wrote:
    > In article <vk9s3ppgj1g59corp.supernews.com>,
    > "Harpstein" <mharpseapine.com> wrote:
    >
    > > heya,
    > >
    > > I've got a path like "Mac HD:Users:harpstein:"
    >
    > This can be converted to a FSSpec using FSMakeFSSpec.
    Only if the path length is less than 255 characters.

    Fred
    > The FSSpec can be converted to a FSRef using FSpMakeFSRef
    >
    > > and I want to convert it to the real path of "/Users/harpstein"
    > >
    > >
    > > I've found the FileManager routine FSRefMakePath, but can't figure out how
    > > to create the FSRef from the path I have.
    > >
    > > Any examples would be greatly appreciated.
    >
    > Patrick
    > --
    > Patrick Stadelmann <Patrick.Stadelmannunine.ch>
    >
    Frederick Cheung Guest

Similar Threads

  1. Testing path vs Local path -- not matching
    By shinji in forum Dreamweaver AppDev
    Replies: 0
    Last Post: May 25th, 01:28 AM
  2. How to put /usr/local/bin in solaris 8 PATH
    By John in forum Linux / Unix Administration
    Replies: 1
    Last Post: April 7th, 11:00 PM
  3. relative path to local shared object
    By JDRives webforumsuser@macromedia.com in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: January 31st, 07:31 PM
  4. Replies: 1
    Last Post: September 9th, 03:20 PM
  5. #25444 [NEW]: php4isapi.dll path to win.ini doesn't load from current path.
    By ict at primus dot ca in forum PHP Development
    Replies: 0
    Last Post: September 9th, 03:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139