Jump to content

Faves - Formerly Favorite Folders


Recommended Posts

Hi, there is something wrong after delete an item from faves list.

 

When add to favorite without delete any item, favorites.json is like following:

 ["\/Users\/suyejun\/Dropbox","\/Users\/suyejun\/Dropbox\/code"]

 

 

After you delete an item from faves list, favorites.json is like following: 

{"1":"\/Users\/suyejun\/Dropbox\/code"}

 

 

Then, when I delete an item, it cannot match any item in my favs list and delete nothing.

Link to post
  • Replies 75
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Formerly called Favorite Folders, now allows you to set any file, folder, or application as a favorite.   A user requested this under the help and questions forum and i really liked the idea of it.

Great workflow! I made one small change to the 'favs' script filter (on line 10): -- $w->result( $fav, $fav, basename( $fav ), $fav, 'filetype:public.folder' ); ++ $w->result( $fav, $fav, base

I had the same problem, but here it is: open Alfred, press "/" without the quotations, then navigate to the folder you want to favourite. Then press the right arrow key and scroll down to "Add to Favo

  • 2 months later...
  • 2 months later...
  • 2 weeks later...

I third the deletion issue. Even uninstalling and reinstalling did not get rid of them.

 

 

It is not working for me either...

 

 

Deletion of folders/files is not working

 

 

Hi, there is something wrong after delete an item from faves list.

 

When add to favorite without delete any item, favorites.json is like following:

 ["\/Users\/suyejun\/Dropbox","\/Users\/suyejun\/Dropbox\/code"]

After you delete an item from faves list, favorites.json is like following: 

{"1":"\/Users\/suyejun\/Dropbox\/code"}

Then, when I delete an item, it cannot match any item in my favs list and delete nothing.

 

Try this download. I found that the workflow was using unset to delete items from an array, which messed up the indices. This version uses array_splice to remove items, thus reconstructing the indices and preserving the array.

 

It also uses array_values to regenerate your existing favorites list, saving it as an array instead of an object.

 

It's a small fix, but say the word if it works for you  :)

Edited by Tyler Eich
Link to post
  • 3 weeks later...
  • 3 months later...

Hello :)

 

Thanks for trying to solve it. Unfortunately I tried the new download but I am still getting the problem.

 

best,

 

Dionysis

 

Hi,

 

As you can see below, I can't delete items from my faves list anymore no matter how many times I press ctrl+Enter. I even removed the whole workflow and reinstalled it. They are still there. Any help? Thanks

 

http://cl.ly/image/1c0Y1O3u2c1O

 

Hello,

 

I have the same problem.

I can't delete items from my faves list with press ctrl+Enter :-(

What is wrong ? Is there any solution? THX

 

I got my new iMac and having same issue. I can't remove folders from my list.

 

I took another stab at this deletion issue. Since David said the problem was related to the workflows.php class, I ported his code to Python (and added a few features).

 

Download

 

The workflow should 'just work'. If it doesn't let me know ;)

 

Changes:

  • 'Remove from Favorites' file action added
  • More flexible filtering using 'fuzzy' search
  • 'Reveal in Finder' action
  • Automatic removal of items that no longer exist on your system
  • Automatic removal of duplicate items
  • New icons
Edited by Tyler Eich
Link to post

I think you guys may be falling victim to a weird bug I've had with my Workflows class. I haven't been able to replicate it so it's hard for me to test and fix it. There have only been a few users who see it. I would bet that it's, once again, that the code for some odd reason isn't able to read the bundle id from the workflow folder. The Workflows class reads the workflows info.plist to grab bundle id. It uses that bundle id to create folders to storing data in on your machine. If it doesn't read the bundle id, the path gets messed up and causes weird issues like this. I wish I had access to a machine that was having this problem so I could tinker with it a minute and find the problem :(

 

I know I am a little bit late, but if you want to you can access my machine if it helps you solve the problem. PM me if interested. Always glad to help ;)

Link to post

Tyler, thanks so much, works for me too. I'd stopped using this workflow because I had a bunch of non-existent folders coming up after a reorganisation . The addition of the dedicated "Remove From Favourites" option is also welcomed!

 

The 'faves' keyword is less likely to bring up a bunch of other app folders than 'favorites' (i.e. Adobe core folders etc) but of course that's easy enough to change ourselves :)

Edited by nwebb
Link to post
  • 1 month later...
  • 2 weeks later...
  • 9 months later...
  • 3 weeks later...
  • 2 weeks later...
  • 3 weeks later...
  • 1 year later...
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...