Jump to content

Add tag to selected files


Recommended Posts

  • 1 month later...
Posted

Great concept. Thanks for creating this! 

However, it's not working on my system: MacOS 10.12.6.

 

Also, as a feature it would be great if there was a fuzzy search function that would populate Alfred results with existing tags .

  • 4 weeks later...
  • 2 years later...
  • 3 months later...
  • 2 months later...
  • 1 year later...
  • 4 months later...
Posted (edited)

How can one export all files tag into one csv file etc so that it can be reapplied on new MacBook or if tags are lost? It is lot of work to tag files and it seems OneDrive sync removes it if you make the files on demand (as meta data is not synced). I know it is more of AppleScript but still hoping tag user will have some solution for this problem

 

relevant link that I found:

https://discussions.apple.com/thread/250604400

 

This script exports tag out -- have to edit and make it go into sub-folder as well. Help please @vitor -- will need AppleScript to apply export tags back to files using Tag.

 

https://answers.microsoft.com/en-us/msoffice/forum/all/where-are-my-finder-tags-in-onedrive-mac/2aac1526-917f-41b2-a332-21109789e8d5

 

Microsoft has no clue on the mess that their recent update on OneDrive is creating for user. See the link above.

Edited by pankajsz
Posted

@pankajsz That is a bug in Microsoft software which they seem interested in solving. The proper way to go about it is to give Microsoft more details about the issue so they can understand and fix it.

Posted
54 minutes ago, vitor said:

@pankajsz That is a bug in Microsoft software which they seem interested in solving. The proper way to go about it is to give Microsoft more details about the issue so they can understand and fix it.

Yes, but this will take a while. with help of user on apple forums (Viking), I now have number file with two columns Fullpath (new location) and other with tags. How can re-apply it using Tag command line utility?

  • 3 weeks later...
Posted
On 10/31/2017 at 10:17 PM, mBax said:

Well, maybe I forgot to say, that you have to install "tag" before -.-  

https://github.com/jdberry/tag/

 

hi mBax,
I downloaded the tag-0.10.zip file, double-clicked on it, something happened - but I can't find the expanded file. Terminal: -bash: tag: command not found
What to do?

/

with best regards, Omar KN, Stockholm, Sweden

Posted

@OmarKN The page could indeed be more explicit about how to install the tool. You need to install Homebrew and brew install tag. But if you’re on Apple Silicon, the install location will be different from what the Workflow expects.

 

As an alternative, I just updated LabelColor to support tags. No prior setup is required.

  • 2 weeks later...
Posted (edited)
On 7/16/2022 at 6:17 PM, vitor said:

@OmarKN … just updated LabelColor to support tags. …
 

 

With LabelColor no tag is produced, sorry.

See image - this is what I did:


- but no tag visible in file…

/okn

Screenshot 2022-07-29 at 21.26.07.jpg

Edited by OmarKN
Mac OS 10.14.6
Posted

You’ve changed the Workflow and are calling the Keyword from the middle of the task. You’re not supposed to call the Keyword yourself, which is why it isn’t set up to be called directly. The Workflow is to be used via Universal Actions.

Posted

So I removed the old hotkey (above CTRL - SH - 6 ) and seemingly I can use Universal Actions. 

 

In pic 1

I open Universal Actions

What I could do was setting a color tag from the palette with ”Labels”

 

but no text tags:

 

pic2.

"add" gives me 2 alternatives - dont know why.

 

Anyway

 

pic3

"addt" gives 1 alternative
at enter, nothing happens

 

pic4
”flaggv” is the tag I wanted to set, no success.

 

BTW
earlier I wanted to test the other tag workflow, but only downloaded the tag-master.

 

/okn

Screenshot 2022-07-30 at 16.07.13.jpg

Posted
2 minutes ago, OmarKN said:

"add" gives me 2 alternatives - dont know why.

 

Because, as explained above, you’ve edited the Keyword. Don’t. And you keep searching for addt. First, delete what you have and reinstall the Workflow. You‘re not on the latest version.

  1. Select some files
  2. Press the Universal Actions shortcut
  3. Go to Add Tags…
  4. Press ↩
  5. Write your tag
  6. Press ↩

Posted

Mac OS 10.14.6
Alfred 5.0.1

Hi Vitor,

I deleted and reinstalled the Workflow. and updated to the latest version.

But sorry no success.


 

/
with best regards, Omar KN, Stockholm, Sweden

 

Screenshot 2022-07-30 at 16.46.50.jpg

Posted

You are not on the latest version, I can tell from the icon. It works with the steps I gave you, I don’t know how to break it down further.

Posted

Hi,

Removed the older version of the Workflow and updated to the latest one (…-2).

Doesn't work either.

The difference is before I could use the Labels , this worked. Now neither Labels, nor Tags work.

But it's not that important, so maybe in the future…
/okn

Screenshot 2022-07-30 at 19.11.08.jpg

Posted (edited)

The debugger:

 

[21:02:12.606] LabelColor[File Action] Processing complete

[21:02:12.610] LabelColor[File Action] Passing output '/Users/okn/LC3b-wout-Movies/Documents-LC3/_social-media-outreach-soc-med/_facebook/_facebook identities/skhm fb identities 2018.rtfd' to Arg and Vars

[21:02:12.611] LabelColor[Arg and Vars] Processing complete

[21:02:12.611] LabelColor[Arg and Vars] Passing output '' to Keyword

[21:02:22.951] LabelColor[Keyword] Processing complete

[21:02:22.956] LabelColor[Keyword] Passing output 'ids' to Run Script

[21:02:23.809] ERROR: LabelColor[Run Script] override r-xr-xr-x  okn/staff for /Users/okn/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/tag? (y/n [n]) not overwritten

dyld: lazy symbol binding failed: Symbol not found: _objc_opt_new

  Referenced from: /Users/okn/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/tag (which was built for Mac OS X 12.0)

  Expected in: /usr/lib/libobjc.A.dylib

 

dyld: Symbol not found: _objc_opt_new

  Referenced from: /Users/okn/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/tag (which was built for Mac OS X 12.0)

  Expected in: /usr/lib/libobjc.A.dylib

[21:02:23.818] LabelColor[Run Script] Processing complete

[21:02:23.819] LabelColor[Run Script] Passing output '' to Run Script

Plus:

This time the Label workflow did work.

Edited by OmarKN
This time the Label workflow did work.
Posted

here is what I got:

 

i5-1791:~ okn$ brew install tag

Warning: You are using macOS 10.14.

We (and Apple) do not provide support for this old version.

You will encounter build failures with some formulae.

Please create pull requests instead of asking for help on Homebrew's GitHub,

Twitter or any other official channels. You are responsible for resolving

any issues you experience while you are running this

old version.

 

==> Downloading https://ghcr.io/v2/homebrew/core/tag/manifests/0.10_1

######################################################################## 100.0%

==> Downloading https://ghcr.io/v2/homebrew/core/tag/blobs/sha256:ee5dbe68476b6a

==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh

######################################################################## 100.0%

==> Pouring tag--0.10_1.mojave.bottle.tar.gz

🍺  /usr/local/Cellar/tag/0.10_1: 6 files, 59.5KB

==> Running `brew cleanup tag`...

Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.

Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

i5-1791:~ okn$

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...