View larger version of recent iChat buddy's picture
Sep 01, '05 09:34:00AM • Contributed by: robot_guy
Sep 01, '05 09:34:00AM • Contributed by: robot_guy
If you frequently change Buddy Pics as part of the ongoing repartée with one of you iChat pals—and your pal does likewise—you may find yourself squinting without success as you try to figure out what that latest 32 x 32 pixel square is really showing.
The following AppleScript will find the most recently created entry in ~/Caches -> com.apple.iChat.Pictures, and open it in Preview at 96 x 96 pixels. (Tested in OS X 10.4.2, but should work in 10.3.x as well.)
The following AppleScript will find the most recently created entry in ~/Caches -> com.apple.iChat.Pictures, and open it in Preview at 96 x 96 pixels. (Tested in OS X 10.4.2, but should work in 10.3.x as well.)
set theLib to path to library folder from user domain as Unicode text
set theTarget to theLib & "Caches:com.apple.iChat.Pictures:"
tell application "Finder"
set thePix to every item of folder theTarget whose ¬
name extension is "jpg"
set newestDate to date "Saturday, January 1, 2005 12:00:00 AM"
end tell
repeat with thisPic in thePix
set thisDate to creation date of thisPic
if thisDate > newestDate then
set newestDate to thisDate
set picToShow to thisPic
end if
end repeat
set picToShow to name of picToShow as Unicode text
set picToShow to (theTarget & picToShow)
tell application "Preview"
activate
open alias picToShow
end tell
tell application "System Events"
tell process "Preview"
keystroke "+" using {command down}
end tell
end tell
[robg adds: This worked for me when I tested it...]
•
[9,400 views]
