Re: 'info for' braindead about .app packages
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.