Jump to content


Photo

Fixing Your Reveal in Finder Not Working With This Workflow


  • Please log in to reply
6 replies to this topic

#1 sayzlim

sayzlim

    Newbie

  • Member
  • Pip
  • 18 posts
  • LocationIndonesia

Posted 16 January 2013 - 01:01 PM

Just in case anyone need encounter problem with Reveal in Finder with Alfred, it’s not Alfred’s fault. You need to relaunch Finder and kill some process. I’ve included the workflow download link here with some bonus: http://d.pr/f/xrvs

 

I’ve explained it in my post:

 

 

If you’ve encountered a bug that stops you from revealing Alfred search result in Finder, then you’ll need this command. Usually it happened after you relaunch Finder without killing “appleeventsd” process. With this, you can relaunch Finder and kill the process in one stroke. Because we need sudo command, you’ll need to enter your user password in the workflows menu (see the Relauch Finder shell script).

 

Let me know if you find it useful.



#2 CarlosNZ

CarlosNZ

    Community Hero

  • Member
  • PipPipPip
  • 371 posts
  • LocationAuckland, New Zealand

Posted 23 January 2013 - 10:52 PM

Very nice bunch of utilities. If you add "Toggle hidden files" to the collection, it'd be just about complete! ;)

 

Just one thing - I'm not particularly keen on entering my password in plain text in a config menu. Any chance you could whip up a little Applescript (or something) to prompt the user for their password each time? (I might do this myself if I find some time.)

 

Cheers, and thanks for the workflow.


Twitter: @CarlosNZ | My Alfred Workflows: Carl's Geekzone

#3 CarlosNZ

CarlosNZ

    Community Hero

  • Member
  • PipPipPip
  • 371 posts
  • LocationAuckland, New Zealand

Posted 27 January 2013 - 06:54 AM

FYI, if anyone else is not keen on having their password stored in a workflow, just change the keyword to require an argument, and change the script to the following:

 

password="{query}" 

killall Finder && echo "$password" | sudo -S killall -KILL appleeventsd

echo "Finder has been relaunched"

Then you just type "relaunch yourpassword" each time instead. Voila! :)


  • sayzlim likes this
Twitter: @CarlosNZ | My Alfred Workflows: Carl's Geekzone

#4 sayzlim

sayzlim

    Newbie

  • Member
  • Pip
  • 18 posts
  • LocationIndonesia

Posted 31 January 2013 - 05:05 PM

Very smart. I didn’t think about it. :D



#5 Jonas Eriksen

Jonas Eriksen

    Member

  • Member
  • PipPip
  • 115 posts
  • LocationDenmark

Posted 31 January 2013 - 05:42 PM

FYI, if anyone else is not keen on having their password stored in a workflow, just change the keyword to require an argument, and change the script to the following:

 

password="{query}" 

killall Finder && echo "$password" | sudo -S killall -KILL appleeventsd

echo "Finder has been relaunched"

Then you just type "relaunch yourpassword" each time instead. Voila! :)

 

 

Even better you can let applescript do the shell script with administrator privileges ...

 

osascript -e "do shell script \"killall Finder && sudo -A killall -KILL appleeventsd\" with administrator privileges"

 

Then you will get a popup asking for your password, this way your password will never be in the clear.


  • CarlosNZ likes this

#6 sayzlim

sayzlim

    Newbie

  • Member
  • Pip
  • 18 posts
  • LocationIndonesia

Posted 02 February 2013 - 02:44 AM

I have problem with the echo returning an extra break line by using osascript. Any clues?



#7 hazenet

hazenet

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 16 March 2013 - 01:12 PM

I have problem with the echo returning an extra break line by using osascript. Any clues?

 

Hi

 

 

When echo'ing af string, echo always end the string with a 'return character' as standard.

But you can tell it not to that, by using the '-n" option.

 

Like this "/bin/echo -n 'Textstring'"




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users