Re: Notification Following Ejection

2010-02-22 Thread Unifier
I appreciate you doing the work for me, but I found the instructions
in this link to HardwareGrowler's documentation (http://growl.info/
documentation/hardwaregrowler.php) easiest to understand.  Just
pointing that out for anyone else trying to do this.  Once again,
thanks!

On Feb 21, 1:10 pm, Patrick Robertson robertson.patr...@gmail.com
wrote:
 To make any application NOT show up in the dock, you need to edit it's
 .plist settings.

 There's an app out there called 'Dock Dodger' or something similar that does
 this for you, but it's really easy.

 Here's the Apple developer info on how to do it

 http://developer.apple.com/Mac/library/documentation/General/Referenc...

 (look at LSUIElement)

 All you need to do is open the .plist -
 HardwarGrowler.app/contents/info.plist and add a new item called
 'LSUIElement' and set it to be Boolean, TRUE then relaunch the app.

 Glad we could help :)

 On 21 February 2010 17:39, Unifier gdp...@gmail.com wrote:

  Ahh... Hardware Growler.  That should fit the bill.  I'm pretty sure
  there's a way to hide the dock icon discussed somewhere in the Growl
  forums (I was able to go there to completely hide GrowlTunes).  Once I
  can do that it'll be perfect, and I'll update this thread with how I
  did it for anyone that's interested.

  Jon, as a person learning to program I appreciate your response as
  well.  I'm really impressed by what I've been able to do with
  AppleScript just by googling and asking on forums like here for info.
  on how to do something in Quicksilver.  Thank you both for your quick
  and helpful replies!

  On Feb 21, 4:37 am, Patrick Robertson robertson.patr...@gmail.com
  wrote:
   For this action, I'd suggest installing Growl (if you haven't already)
  and
   then installing the extra 'Hardware Growler' this brings up a growl
   notification when anything's ejected.

   On 21 February 2010 04:19, Unifier gdp...@gmail.com wrote:

(Mac OS 10.4.11, Quicksilver B54)

Hi all.  I'm dissatisfied with Quicksilver's default Eject action
because it lacks any kind of notification as to when a volume has been
successfully ejected.  Every now and then, it takes an extra 15
seconds or so for a volume to no longer be visible in the Finder
sidebar to confirm successful ejection.  I would hate to accidentally
remove my USB thumbdrive before this.  I am currently trying to
formulate an action via AppleScript to resolve this.  Here's one that
I came up with so far:

on open theFile
       tell application Finder to eject theFile
       tell application Quicksilver to show large type The disk has
  been
successfully ejected
end open

What can I do from here to ensure the large type notification doesn't
appear until the drive has been ejected completely?  Thanks in
advanced!


Re: Notification Following Ejection

2010-02-21 Thread Patrick Robertson
For this action, I'd suggest installing Growl (if you haven't already) and
then installing the extra 'Hardware Growler' this brings up a growl
notification when anything's ejected.

On 21 February 2010 04:19, Unifier gdp...@gmail.com wrote:

 (Mac OS 10.4.11, Quicksilver B54)

 Hi all.  I'm dissatisfied with Quicksilver's default Eject action
 because it lacks any kind of notification as to when a volume has been
 successfully ejected.  Every now and then, it takes an extra 15
 seconds or so for a volume to no longer be visible in the Finder
 sidebar to confirm successful ejection.  I would hate to accidentally
 remove my USB thumbdrive before this.  I am currently trying to
 formulate an action via AppleScript to resolve this.  Here's one that
 I came up with so far:

 on open theFile
tell application Finder to eject theFile
tell application Quicksilver to show large type The disk has been
 successfully ejected
 end open

 What can I do from here to ensure the large type notification doesn't
 appear until the drive has been ejected completely?  Thanks in
 advanced!



Re: Notification Following Ejection

2010-02-21 Thread Patrick Robertson
To make any application NOT show up in the dock, you need to edit it's
.plist settings.

There's an app out there called 'Dock Dodger' or something similar that does
this for you, but it's really easy.

Here's the Apple developer info on how to do it

http://developer.apple.com/Mac/library/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html

(look at LSUIElement)

All you need to do is open the .plist -
HardwarGrowler.app/contents/info.plist and add a new item called
'LSUIElement' and set it to be Boolean, TRUE then relaunch the app.

Glad we could help :)

On 21 February 2010 17:39, Unifier gdp...@gmail.com wrote:

 Ahh... Hardware Growler.  That should fit the bill.  I'm pretty sure
 there's a way to hide the dock icon discussed somewhere in the Growl
 forums (I was able to go there to completely hide GrowlTunes).  Once I
 can do that it'll be perfect, and I'll update this thread with how I
 did it for anyone that's interested.

 Jon, as a person learning to program I appreciate your response as
 well.  I'm really impressed by what I've been able to do with
 AppleScript just by googling and asking on forums like here for info.
 on how to do something in Quicksilver.  Thank you both for your quick
 and helpful replies!

 On Feb 21, 4:37 am, Patrick Robertson robertson.patr...@gmail.com
 wrote:
  For this action, I'd suggest installing Growl (if you haven't already)
 and
  then installing the extra 'Hardware Growler' this brings up a growl
  notification when anything's ejected.
 
  On 21 February 2010 04:19, Unifier gdp...@gmail.com wrote:
 
   (Mac OS 10.4.11, Quicksilver B54)
 
   Hi all.  I'm dissatisfied with Quicksilver's default Eject action
   because it lacks any kind of notification as to when a volume has been
   successfully ejected.  Every now and then, it takes an extra 15
   seconds or so for a volume to no longer be visible in the Finder
   sidebar to confirm successful ejection.  I would hate to accidentally
   remove my USB thumbdrive before this.  I am currently trying to
   formulate an action via AppleScript to resolve this.  Here's one that
   I came up with so far:
 
   on open theFile
  tell application Finder to eject theFile
  tell application Quicksilver to show large type The disk has
 been
   successfully ejected
   end open
 
   What can I do from here to ensure the large type notification doesn't
   appear until the drive has been ejected completely?  Thanks in
   advanced!



Re: Notification Following Ejection

2010-02-21 Thread Jon Stovell (a.k.a. Sesquipedalian)
I've hidden several apps here and there using LSUIElement, and it
works perfectly. However, it should be mentioned that this will break
the code signature (a security feature in Max OS X 10.5+) of the app.
For most applications this is not a problem; all that will happen is a
warning from the OS next time you run the app. There are a few apps,
however, that may stop functioning if their code signature is broken,
so it is always wise to back up the app before modifying its
Info.plist.

For more on code signatures, see
http://developer.apple.com/mac/library/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html

On Feb 21, 1:10 pm, Patrick Robertson robertson.patr...@gmail.com
wrote:
 To make any application NOT show up in the dock, you need to edit it's
 .plist settings.

 There's an app out there called 'Dock Dodger' or something similar that does
 this for you, but it's really easy.

 Here's the Apple developer info on how to do it

 http://developer.apple.com/Mac/library/documentation/General/Referenc...

 (look at LSUIElement)

 All you need to do is open the .plist -
 HardwarGrowler.app/contents/info.plist and add a new item called
 'LSUIElement' and set it to be Boolean, TRUE then relaunch the app.

 Glad we could help :)

 On 21 February 2010 17:39, Unifier gdp...@gmail.com wrote:



  Ahh... Hardware Growler.  That should fit the bill.  I'm pretty sure
  there's a way to hide the dock icon discussed somewhere in the Growl
  forums (I was able to go there to completely hide GrowlTunes).  Once I
  can do that it'll be perfect, and I'll update this thread with how I
  did it for anyone that's interested.

  Jon, as a person learning to program I appreciate your response as
  well.  I'm really impressed by what I've been able to do with
  AppleScript just by googling and asking on forums like here for info.
  on how to do something in Quicksilver.  Thank you both for your quick
  and helpful replies!

  On Feb 21, 4:37 am, Patrick Robertson robertson.patr...@gmail.com
  wrote:
   For this action, I'd suggest installing Growl (if you haven't already)
  and
   then installing the extra 'Hardware Growler' this brings up a growl
   notification when anything's ejected.

   On 21 February 2010 04:19, Unifier gdp...@gmail.com wrote:

(Mac OS 10.4.11, Quicksilver B54)

Hi all.  I'm dissatisfied with Quicksilver's default Eject action
because it lacks any kind of notification as to when a volume has been
successfully ejected.  Every now and then, it takes an extra 15
seconds or so for a volume to no longer be visible in the Finder
sidebar to confirm successful ejection.  I would hate to accidentally
remove my USB thumbdrive before this.  I am currently trying to
formulate an action via AppleScript to resolve this.  Here's one that
I came up with so far:

on open theFile
       tell application Finder to eject theFile
       tell application Quicksilver to show large type The disk has
  been
successfully ejected
end open

What can I do from here to ensure the large type notification doesn't
appear until the drive has been ejected completely?  Thanks in
advanced!


Re: Notification Following Ejection

2010-02-20 Thread Jon Stovell (a.k.a. Sesquipedalian)
Between the first and second lines of your open() handler's code,
insert the following:

repeat until not (exists theFile)
--
end repeat

On Feb 20, 11:19 pm, Unifier gdp...@gmail.com wrote:
 (Mac OS 10.4.11, Quicksilver B54)

 Hi all.  I'm dissatisfied with Quicksilver's default Eject action
 because it lacks any kind of notification as to when a volume has been
 successfully ejected.  Every now and then, it takes an extra 15
 seconds or so for a volume to no longer be visible in the Finder
 sidebar to confirm successful ejection.  I would hate to accidentally
 remove my USB thumbdrive before this.  I am currently trying to
 formulate an action via AppleScript to resolve this.  Here's one that
 I came up with so far:

 on open theFile
         tell application Finder to eject theFile
         tell application Quicksilver to show large type The disk has been
 successfully ejected
 end open

 What can I do from here to ensure the large type notification doesn't
 appear until the drive has been ejected completely?  Thanks in
 advanced!