• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mac OS X/Mac OS 9 Long File Name Conversion w/AppleScript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac OS X/Mac OS 9 Long File Name Conversion w/AppleScript?


  • Subject: Re: Mac OS X/Mac OS 9 Long File Name Conversion w/AppleScript?
  • From: garbanzito <email@hidden>
  • Date: Mon, 25 Feb 2002 17:30:32 -0700

at 2002 02 25, 09:04 -0700, they whom i call Richard Glaser wrote:
Hello:

I am looking for a way of renaming a long file name started up in Mac OS 9 that will be used in Mac OS X. See example below how the files are displayed in Mac OS 9 & Mac OS X.

From Mac OS 9.2.1 (31 characters)
-------------------------------
1234567890123456789012345678901
-------------------------------
com.apple.Aqua Icons#303D.plist
com.apple.Classic.00#303E.plist
com.apple.ColorSyncD#303F.plist
com.apple.HIToolbox.#3040.plist
com.apple.ImageCaptu#3041.plist
com.apple.iTunes.000#3042.plist
com.apple.screensave#3043.plist
com.apple.systempref#3044.plist
com.apple.windowserv#3045.plist
com.apple.windowserv#3046.plist
com.apple.windowserv#3047.plist

From Mac OS X
--------------------------------------------------
12345678901234567890123456789012345678901234567890
--------------------------------------------------
com.apple.Aqua Icons.000502d32ef7.plist
com.apple.Classic.000502d32ef7.plist
com.apple.ColorSyncDeviceList.000502d32ef7.plist
com.apple.HIToolbox.000502d32ef7.plist
com.apple.ImageCapture2.000502d32ef7.plist
com.apple.iTunes.000502d32ef7.plist
com.apple.screensaver.000502d32ef7.plist
com.apple.systempreferences.000502d32ef7.plist
com.apple.windowserver.000502d32ef7.plist
com.apple.windowserver.localhost.plist
com.apple.windowserver.macosx-3.mlmc.utah.edu.plist

Is there a formula to the "#303D" truncation of the long file name. What I need is to rename the file using the Mac's Ethernet address and hostname not the one originally setup and have it work properly when booted into Mac OS X.

i investigated this a bit when i had both 9 & X on two
machines at my desk. there are a couple of issues.

one is that when a long file name is created on Mac OS X,
and that same file's name is displayed on Mac OS 9 (such as
via FileSharing), the truncation you see is superficial. as
long as you don't use Mac OS 9 to copy the file or
manipulate its name, the full name is still stored by the
filesystem (and is accessible through certain APIs, but not
to AppleScript as far as i know).

the other issue is that the truncated form of the name is
*not* translatable back to the full name. the point of the
"#XXXX" part is only to guarantee the shortened filename to
be unique (so the system can distinguish

antidisestablishmentarianismisgood.txt

from

antidisestablishmentarianismisbad.txt

--
steve harley email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Mac OS X/Mac OS 9 Long File Name Conversion w/AppleScript? (From: Richard Glaser <email@hidden>)

  • Prev by Date: HTML to PDF Mac OS X..
  • Next by Date: Re: Need help scripting print dialogs in AppleWorks 6.2.2
  • Previous by thread: Mac OS X/Mac OS 9 Long File Name Conversion w/AppleScript?
  • Next by thread: Mac OS X/Mac OS 9 Long File Name Conversion w/AppleScript?
  • Index(es):
    • Date
    • Thread