Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

0

Make sure your desired quick actions are enabled in System Preferences → Extensions → Finder.


0

I haven't tested this, but it looks like you have too many levels of quotes there. You manually put double-quotes around the command to be run over ssh (in the set fn to "\"/usr/bin/open ... & "\"" line), and then use quoted form of fn, which adds another level of quotes. It looks fine when you echo it, but that's because the shell parses & removes ...


4

Deliberately Restricted Yes, this is a deliberate choice by Apple's engineers. Automator – and other applications – can not intercept keystrokes sent to password fields. The restriction is enforced by macOS. The keystrokes sent to secure text fields do not appear in the read-only copy of events sent to other observing processes. Browsers Using Native ...


2

Here is another option you may find useful. This AppleScript code works for me using the latest version of macOS Mojave. tell application "Folder Actions Setup" activate set everyFolderAction to a reference to every folder action set folderNamesWithAttachedFolderActions to name of everyFolderAction set pathToFoldersWithAttachedFolderActions ...


4

As an alternative, this one-line snippet of AppleScript will return all folders with folder actions applied them: tell application "System Events" to get the path of every folder action --> {"/Users/CK/Scripts/AppleScript/scripts", "/Users/CK/Downloads", ...} This one might be handy too, because it lists the actual path to the scripts or Automator ...


2

Open the Folder Actions Setup app. This lists folders with actions, and the actions that each folder has assigned to it. You can add and remove actions from folders here, and enable/disable folder actions globally.


0

Am I missing something? I don't see the point of iCloud for Automator if I have to duplicate the services to ~/Library/Services in order to use them. Unfortunately, this still seems to be the case as of this posting. I, too, have elected to use symlinks as a workaround. In the spirit of automation, I have a Folder Action monitoring the iCloud Automator ...


-1

If you just need to copy modification date to creation date on same files you can use my modified script: #!/bin/bash for f in *; do cDate="$(GetFileInfo -d "$f")" mDate="$(GetFileInfo -m "$f")" SetFile -d "$mDate" "$f" done


1

I'm not sure I understand your question exactly. But, if all of the tables are on one sheet, and all of the tables need to get the same new column and the same column title, this will work. Screenshot of Numbers document with three tables on the sheet, before running the script. Screenshot of Numbers document with three tables on the sheet, with column ...


0

exiftool can also be used to generate a GPX file which can be processed by other GPX-aware programs. You can download the gpx.fmt template from the exiftool website: exiftool -p ./gpx.fmt *JPG > output.gpx Some useful options: -if makes exiftool only process files with a gps tag, -fileOrder allows processing in a forced order, -d allows formatting the ...


3

In this situation, renaming files is not the way to go! As you stated in the OP, "There's almost 500,000 files, so doing this manually is not practical.", and as mention in my comment to the OP "I'd recommend checking out Gemini 2 which you can download a copy for free and run it to see what it finds. If you like the results you can consider purchasing it."....


1

Here is a solution that I have tested several times and it seems to work. I'm sure someone with more experience can offer a solution which is much quicker than mine, but so far this is the best I can come up with. I strongly suggest making a copy of your "recovered" files with generic file naming. Then I would run the following code on your copied files. ...


0

I would strongly recommend a total backup of all your data before proceeding. After that, create a new account and play-around from the new account. "Advanced Bash-Scripting Guide" covers everything with numerous examples. http://www.tldp.org/guides.html It the fist manual listed. Bash is powerful but exacting. Should be able to find what you need in ...


3

If all the files are in the same directory, then in Terminal, changed directory, e.g. cd /path/to/directory and then use the following compound command: for f in *.*; do echo mv -n "$f" "${f%.*}-$(stat -f'%SB' -t "%H_%M_%S" "$f").${f##*.}"; done Note: There is an intensional echo command that is there for you to test with, and it will only print out the mv ...


2

The following is an example Automator workflow that achieves the stated goal of your question per its defined hierarchal folder structure. NOTE: While the example bash code used in the Run Shell Script action completed successfully nonetheless, the onus is upon the user to ensure that proper backups exist before using it. I'd even suggest making a small ...


1

You asked for an automative method to do this from within the Messages app, which this AppleScript can achieve. You can place it in a Run AppleScript action. use application "System Events" property process : a reference to process "Messages" property menu bar : a reference to menu bar 1 of my process property menu bar item : a reference to menu bar item "...


1

As benwiggy says above: You may be able to assign that key press in the Finder to some other (rarely used) menu item or service, and see if that stops it. It does indeed. Before Mojave, Command-R activated "Reveal Original" in the File Menu. I created a shortcut in the Keyboard preference panel restoring that connection, and another one for Cmd-Opt-R to "...


Top 50 recent answers are included