> I think you'll need the Celtic god after all. I can’t really complain on that one can I? You know my weak spot… :P Why isn’t setting a file path working for you? I’ve just tried it with:
tell application "Quicksilver" to show notification "Error" image name "/Users/patrick/Desktop/img.png" text "This notification is working" and this works just fine. As Rob says, you can also use bundle identifiers and anything QS already knows about - for this, you could even edit an existing plugin’s Info.plist to add a new entry to QSRegistration. This is what Rob was hinting at when he gave you the link to the Plugin Dev Ref. To be honest, I can’t even find any existing examples of AppleScript dealing with NSData, so I’d just stay away from that and use paths. On 28 Ion 2014, at 06:08, Etienne Samson <[email protected]> wrote: > Your raw JPEG data looks truncated (I've pasted it in a file using 0xED and > Preview won't open it). I've been trying with a TIFF icon extracted from > Preview's own JPEG icon (for a more mind-bending > what's-the-format-of-that-data-actually effect), and I can't get it to work, > it just display a blank pane. > > It looks to me the culprit is the "{TIFF picture:<<data...>>} part, because > on the QS side I'm getting back a data object that NSImage can't read (even > though reading directly the image file works), and starts with "dle2 > ...PICT...TIFF..." (... here means binary), so something weird happens... You > can replace "TIFF" here with the rest of your test data and the results are > the same : it can't be read as an image anymore. > > And I just had some fun with AppleScript, which scares me and doesn't like > messaging applications running under Xcode, and lldb, which is > half-brain-half-dead. Thanks ;-). I think you'll need the Celtic god after > all. > > Cordialement, > Etienne Samson > -- > [email protected] > > Le 27 janv. 2014 à 21:49, 1.61803 <[email protected]> a écrit : > >> On Monday, January 27, 2014 9:33:11 PM UTC+1, Etienne wrote: >> It should work (I'm looking at The Source(tm), a.k.a QSNotifyScriptCommand >> in QSNotifyMediator.m), but make sure you don't use Notification Center as >> the default notifier, because its API doesn't allow for icon customization. >> >> It should but it doesn't. Could you try the jpeg raw data I posted earlier? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Quicksilver" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/blacktree-quicksilver. >> For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to the Google Groups > "Quicksilver" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/blacktree-quicksilver. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/groups/opt_out.
