[ome] / cocoaomenu / RevealUnreadMails.applescript Repository:
ViewVC logotype

View of /cocoaomenu/RevealUnreadMails.applescript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Sun Apr 6 08:17:50 2008 UTC (2 years, 5 months ago) by msyk
File size: 622 byte(s)
First Import
-- RevealUnreadMails.applescript
-- CocoaOMEnu3
on run
	tell application "Finder"
		set OME_Root to (original item of alias file "OME_Root" of folder "OME_Preferences" of (path to preferences folder from user domain)) as alias
	end tell
	set ygm to do shell script "/usr/bin/mdfind -onlyin " & quoted form of POSIX path of OME_Root & " kMDItemContentType=jp.mac-ome.ome.ygm"
	if ygm = "" then return 0
	set ygm to every paragraph of ygm
	set ygmlist to {}
	repeat with i in ygm
		set end of ygmlist to POSIX file i
	end repeat
	tell application "Finder"
		activate
		reveal ygmlist
	end tell
	return count ygmlist
end run

This site is managed by Masayuki Nii.
ViewVC Help
Powered by ViewVC 1.0.5