• 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
Mac OS X/Mac OS 9 Long File Name Conversion w/AppleScript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Mac OS X/Mac OS 9 Long File Name Conversion w/AppleScript?
  • From: Richard Glaser <email@hidden>
  • Date: Fri, 22 Feb 2002 14:36:21 -0700

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.

Make sense?

The reason I am doing this is to automate our process or imaging Mac OS X and require little or no user input. The need of this is due to the settings (i.e. Screen Saver) and applications (i.e. iTunes) create setting in the ByHost folder that use hardware specific info in the name (i.e Ethernet address, host name). When Mac OS X is imaged, the Ethernet address/host name change, but the file names use the old names which do not work and need to be renamed for the new hardware.

Any suggestions on a AppleScript to convert rename these file names?
--

Thanks:

Richard Glaser
University of Utah
Student Computing
email@hidden
801-585-8016
_______________________________________________
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.

  • Prev by Date: Set "to" not "sender" in Outlook express
  • Next by Date: Set creator type
  • Previous by thread: Re: Mac OS X/Mac OS 9 Long File Name Conversion w/AppleScript?
  • Next by thread: Scripting audio feedback?
  • Index(es):
    • Date
    • Thread