How do I add a file to Favorites?

I cannot seem to add a file to my Favorites folder? When I read click on a file name and select "Add to Favorites", it does not appear. I can only seem to add folders. I'm thinking there must be a way to add a single file to the Favorites list. I saw an old post from 2006 around scripting for a button to do this, but can't imagine this hasn't been simplified since then. Can someone please point me in the right direction on this?

1 Like

It hasn't changed since then. You can still use that method. (It should just be a single-line command you add to a button or hotkey, if it's the post I remember. No script code should be required.)

We don't plan to simplify it, as Favorites are intended for folders, not files. We let you add files to the list if you really want to, but it isn't what the list is for.

This lets you add files and folders to the Favorites:

Favorites ADD PATH={filepath$}
2 Likes

What has worked for me is to add the files to the Applications Toolbar.

1 Like

That works, too. When in Settings > Customize mode, you can drag a file to anywhere in your toolbars or menus to create a button for it.

Excuse the ignorant question, but where do I type in: Favorites ADD PATH={filepath$} ???

You can either put it as a command in a button or type it in the FAYT field after you hit the > key.
Hitting > makes you enter the FAYT field telling Opus that what follows is a command to execute.

More on the ways to use buttons here :

Hi,
This isn't working as expected.
I added a button with the command, then right click a file, select Add too Favourites and I get :slight_smile:

I'm configured with this:

Someone said "Favorites are intended for folders, not files"
So why is 'add to favourites' listed in the context menu right clicked on files??
To a user, a Favourite can mean anything, like a bookmark, a text file, an image or a folder, or a size 6 blonde with blue eyes :beating_heart:

In macOS the 'Dock' at the bottom allows user to drag any file type to the right of the Applications segment, user can click to open from there. Windoze's 'taskbar' can't do this, so like the OP, thinking we can make use of the Favourites toolbar to either drag and drop any file there or right click add to favourites.

I also tried dragging files to the Applications Toolbar but that didn't do anything either.

Only working solution so far is right click 'customise' the favourites toolbar and drag the files to it.
Suppose it's decent because it's probably something we'd add a batch of files initially then occasionally add something new.

That looks like you’re editing a toolbar button, which won’t affect what happens when you right-click a file.

Things in the right-click menu are edited via Settings > File Types. Have you added something there as well? Check it has the correct command if so.

Yes, I selected All files and folder Multiple and put in context menu.
After right click a file and select this new command, the favourites bar wiggled a bit but the file didn't appear, however, Preferences/Favourites List does show the file:

Oh well, I created a custom toolbar names 'Files' and use the procedure, right click toolbar, Customise, then drag the files I need there, works well enough, less convenient than right click and add or simply dragging to it, but it'll do.

Would be nice to colour the headings in the Favourite Preferences:

Favourites bar seems to have drag and drop capability, it'd be preferred if any file can be dragged there too. Also I notice is a folder has a tag colour say red and it's dragged to the favourites toolbar, the colour isn't shown on the toolbar, that's a shame.

Oh, these files in the custom toolbar are not dynamic BTW.
I add a PDF to the toolbar then later rename it in Opus, then click the file in the toolbar, it throws up, can't find path to file.
Yet another little think where macOS is smarter than windumbOS, in macOS I drag a text file to the dock, go rename it in the Finder then click again on the text file in the dock, it will still open and the titlebar will show the new name.

Other limitations with the custom toolbar is there's no right click context menu where we'd want to copy path or open file location, the favourites toolbar has a context menu. So since the Favourites toolbar already has most needed functionality prolly less code to just allow it to have files added, rather than recoding all the custom tool bars.

Except for the Favorites toolbar (which intent is to store favorites), other Toolbars are for buttons (and menus, and menubuttons).
Buttons in toolbars are here to take actions (sometimes on selected files and folders, sometimes "on their own", depending on the actions that are associated with these buttons; actions that are coming either from a subset of Opus commands, or from scripts in buttons, or from script add-ins that allowed to extend the base commands with new ones or even from DOS commands or external/third-party programs).

It looks like you didn't find the time to follow my advice on the other thread where I encouraged you to go take a walk into the manual so you can understand the logic behind Opus, the commands, the different types of buttons, and so on.

And once again, complaining about Windows or Opus not being macOS or finder is not helping in any way.

1 Like