brettpoole / growl

Automatically exported from code.google.com/p/growl
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

documentation/faq.php#applescriptimagelocation #541

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
we need to put together a documentation page describing the deprecation of 
'icon from location' and how to fix their applescripts

Original issue reported on code.google.com by rarich...@gmail.com on 8 Oct 2012 at 10:52

GoogleCodeExporter commented 8 years ago
Sounds like I won't be able to download album-art and show a notification with 
it anymore in the future? Or is this 'just' about making sure you supply an 
alias in your applescript?

Original comment by windgazer on 28 Nov 2012 at 12:46

GoogleCodeExporter commented 8 years ago
'icon from location' is being deprecated, any usage of it with Growl 2.0.1 will 
default to a standard icon (AppleScript Editor.app's icon).  We will accept 
direct, raw image data via the image argument of notify.  

A quick sample script of grabbing a unix file path into a tiff image acceptable 
to sending to growl:
on get_image(imgPath)
    set imgfd to open for access POSIX file imgPath
    set img to read imgfd as "TIFF"
    close access imgfd
    return img
end get_image

usage:
set noteImage to get_image("/Path/To/Image.jpg")

tell application "Growl"
notify with application name "TestImage" name "Hello" title "testing" 
description "Image from a file path" image noteImage
end tell

Original comment by dan...@growl.info on 28 Nov 2012 at 1:19