• 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: 'info for' braindead about .app packages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'info for' braindead about .app packages


  • Subject: Re: 'info for' braindead about .app packages
  • From: Walter Ian Kaye <email@hidden>
  • Date: Thu, 6 May 2004 05:05:43 -0700

At 01:54a -0500 05/06/2004, Joseph Weaks didst inscribe upon an electronic papyrus:

Any of you care to share your brilliantly economic handlers you've created to parse XML?

And here's my routine for getting the Info.plist, even if it's named oddly (such as Adobe Reader's "Info-macos.plist").

on InfoPlistPath(app_path)
local app_path, p, cfiles, f, f2
set p to app_path & "Contents:"
set cfiles to list folder p
set f2 to ""
ignoring case
repeat with f in cfiles
if f ends with ".plist" then
set f to f as item
if f is "Info.plist" then
exit repeat
else
if f contains "info" then copy f to f2
set f to ""
end if
else
set f to ""
end if
end repeat
end ignoring
if f is "" then set f to f2
p & f
end InfoPlistPath
_______________________________________________
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.


  • Follow-Ups:
    • Re: 'info for' braindead about .app packages
      • From: Joseph Weaks <email@hidden>
References: 
 >'info for' braindead about .app packages (From: Walter Ian Kaye <email@hidden>)
 >Re: 'info for' braindead about .app packages (From: Christopher Nebel <email@hidden>)
 >Re: 'info for' braindead about .app packages (From: Walter Ian Kaye <email@hidden>)
 >Re: 'info for' braindead about .app packages (From: Rob Jorgensen <email@hidden>)
 >Re: 'info for' braindead about .app packages (From: Joseph Weaks <email@hidden>)

  • Prev by Date: Re: 'info for' braindead about .app packages
  • Next by Date: Re: 'info for' braindead about .app packages
  • Previous by thread: Re: 'info for' braindead about .app packages
  • Next by thread: Re: 'info for' braindead about .app packages
  • Index(es):
    • Date
    • Thread