MacOS, how to delete unused service item in Keyboard Shortcuts - macos

I'm a newbie to Mac OS and learning with Automator, I found it useful but not quite controllable. I made a shortcut in services but I don't know how to delete it.
The item highlighted is what I want to delete. I think I should do it with Automator but I don't find out how.
Any help will be appreciated.

crtl + mouse click on the service to get a context menu for the service.
Select Show in Finder.
This will take you to the service file by opening a new finder window and selecting it.
You then just need to remove the file from the Services folder.
When close and re-open the System Prefs. The Service will not be there anymore.

Here Are Some Good Things to Know Too
#markhunte seems to have a good answer, but here's another way:
If you are within Automator.app,
Open the Service that you want to delete. You may have to choose "Open..." from the menu and type the key-combination command-shift-period to view invisible files such as ~/Library (which is now invisible by default in Mountain Lion.)
Your services (the ones that are local to your account) are in the folder: ~/Library/Services
After opening your Service in Automator, hold down the command-key and click the title of the window. (This works in most Mac applications -- not just in Automator to reveal documents in the Finder.)
Once you've found the document in the Finder, you can simply move it to the Trash like any other document.
Also, other kinds of Automator workflows can be found in a similar manner in the following directory:
~/Library/Workflows/Applications
I think that with this sort of Thing that Apple has just made it hard.
With the folder ~/Library now being hidden by default.
With having to know the "secret-handshake" command-shift-period to be able to open hidden files.
and
To have a way to reveal documents in the Finder, but have it also a "secret-handshake" of holding down the command-key while clicking on a document window's title to be able to reveal documents in the Finder.
I think that to get Apple to change these things, the way that they listen is if many developers file a bug report:
Apple's Bug Reporter:
https://developer.apple.com/bug-reporting/

Look in ~/Library/Services or /Library/Services
In the Finder, ~/Library is now an invisible folder by default in Mountain Lion. Of course, people can google for "Mac show hidden files" and find a command to enter into the command-line to make all files and folders visible. As a programmer, I like being able to see everything.
Unix Command:
defaults write com.apple.Finder AppleShowAllFiles TRUE
Reference:
http://osxdaily.com/2009/02/25/show-hidden-files-in-os-x/

Related

VSCode on MacOS (Ventura) "open" folder finder dialogue does not show full path. Why not?

When I open a normal finder window on MacOS (Ventura), I have it set so that I can see the absolute path listed at the bottom of the window. This does NOT happen in VSCode. When clicking Open (or menu file/open) I am always wondering if I might be opening in a similar path.. but I don't know, because the dialogue does not tell me where I am! .. and I don't want to have to click on the folder window at the top! to find out!) How can I change VSCode finder behavior so it is the same as normal system finder?
I tried looking for settings in JSON file.. but can't find an option that covers this behavior. I don't understand why anyone would NOT want to see file path information. I ALWAYS want to know at a glance where I am in the file system! I want the full path! My expectation is that for such a sophisticated and elegant Code editor and environment, one should always be able to easily see the FULL absolute path you are in.
My regular finder shows the full path. Why is it missing in VSCode?
An Open panel is not the same as a Finder window. If you click the pop up menu in the top middle of the open panel, it will show the path to the folder being displayed.
If you hold option, the path will display at bottom like a popup.
check this or google mac os show file path

is it possibile to open iTerm in current Finder position

Sometimes it could be very useful to open new iTerm window. I've seen this feature in Gnome window manager. It is possible to get same feature on MaxOsX? Is there a software to do that?
Go to System Preferences -> Keyboard -> Shortcuts -> Services -> Files and Folders and give preferred shortcuts.
The shortcut will open iTerm at the selected folder, instead of from the folder that has been opened.
You can right-click on the folder where you want iTerm2 to open, then select Services -> New iTerm2 Tab here.
You can also find other options in the Services menu to open iTerm2 and Terminal.
This was tested on iTerm2 3.x and Catalina and above.
There are two apps called "Go2Shell" and "ShellHere". Both place a small icon at the top of the finder window. When the icon is clicked a terminal window opens in the same directory as the finder window.
Go2Shell
Go2Shell can be downloaded from Mac App Store or developer's website. It is possible that you won't be able to install it from Mac App Store, because Go2Shell wasn't updated for a long time.
Go2Shell allows users to specify whether to open shell in Terminal or iTerm2.
ShellHere
Shellhere can be downloaded from here.
ShellHere allows users to open a folder only in uses only MacOS Terminal.
Problem with current solutions: Doesn't work in current folder. Only if you right click a folder.
So do this:
In Finder, press ⌥ + ⌘ + P to show the path bar.
Then, right click your folder and choose the option. Voila!
Try https://github.com/wonderyue/Go2ShellAppleScript.
Something like Go2Shell. The latest update of Go2Shell is five years ago, due to the compatibility problem, I make a similar one with AppleScript.
If you want to open iTerm in current Finder position try the following:
OpenInTerminal
https://github.com/Ji4n1ng/OpenInTerminal
Alternative and a bit older
TermHere
https://hashbang.productions/apps/termhere/ (last updated on 2016)
Both work without issues in MacOS Catalina
cdto doesn't support opening the folder in iTerm, so its a no go
If you have BetterTouchTool, you can just create a Finder trigger with action "Open Active/Selected Folder With Specific App" and select "iTerm". Works for me!
BetterTouchTool screenshot
EDIT:
You can even add Hotkey Window hotkey before "Open Active/Selected Folder With Specific App" to open the terminal in the hotkey window (as a tab). Really neat.
In hotkey window
I've been using cdto forever before accidentally stumbling on to the accepted answer. Will definitely try out the accepted answer, but leaving a link to cdto here if someone finds in useful
https://github.com/jbtule/cdto

How to force folder refresh in Sublime, when "Project > refresh" doesn't work?

Especially when using an sftp drive (but this problem is also an issue with local drives, although thankfully not as frequent), the folders in the sidebar just keep spinning and spinning, and the "Open Anything" dialog therefore has no files to choose from.
"Project > Refresh folders" does not work in most cases.
I've resorted to restarting Sublime manually, which works most of the time, but it's getting to be a pain to have to do this every other time I switch projects.
Is there any better way to "force" the folders to refresh?
This problem is the reason I asked this question:
How to save project state before exiting in ST3 on Windows?
The SublimeRestart plugin doesn't work on Windows until this project-state-saving problem is solved. However, even if it did work perfectly, it would still only be a workaround for this really annoying non-refreshing-folders issue.
My workaround on Windows, FYI: After loading a project, when the folders don't refresh (don't load even the first time), I have ctrl+f10 bound to "File > Exit", and f10 configured into the shortcut that I launch Sublime Text with. So two reasonably-quick (although additional!) button presses.
Open Sublime Text.
Select Preferences from the top menu and click Key Bindings – User. Here you will see a JSON file that should contain an array of objects (initially the array is empty). Every object will represent a shortcut.
Add the following (new shortcut object) entry into the array (between the brackets):
{
"keys" : ["f5"],
"command" : "refresh_folder_list"
}
You should be able to refresh the folders with F5.
Try to Install this package:
https://packagecontrol.io/packages/SideBarEnhancements
Open the package folder. Main menu -> Preferences -> Package Control: -> Package Control: Install Package
Search the keyword: Side​Bar​Enhancements
Enjoy it
After you install this plugin, you will see the refresh button in your sidebar option:
I have added this myself the other day. I constantly work in an environment where files in the project are changing before I can see them.
Goto 'Preferences' menu -> 'Key Bindings' -> 'User' which will open a JSON file, add below code, save and close that file.
{ "keys": ["ctrl+f5"], "command": "refresh_folder_list" }
It will work like charm 100%. Thanks for asking this question.
This isn't going to be a very useful answer but it documents some early behaviour in Sublime Text that would solve your problem, assuming you need no later features from Sublime Text 2/3 (a big assumption indeed).
Sublime Text 1 had the handy feature in the folder context menu to "Refresh folder". This cause an immediate indexing of only the specified directory (and subdirectories) which was a boon when using networked drives over high-latency connections.
This was deprecated in Sublime Text 2.
Version 1 is available here or by direct download here. It's not clear that these will be available indefinitely though, so this isn't necessarily a long-term solution.

How to activate the Scripts menu in iTerm2 on Mac?

I have created a custom AppleScript that works, and placed it in the folder:
~/Library/Application Support/iTerm/Scripts
As described in the documentation here:
http://www.iterm2.com/#/section/documentation/scripting
However I don't see a "Scripts" menu in iTerm2 after restarting, as advertised.
Any ideas? Thanks
Easy. For some reason, iTerm only shows scripts that were saved with the "Run Only" option (I think they're precompiled scripts in a binary format) in that Script menu. Unfortunately, these scripts cannot be modified, so it's a good idea to also save them as text files or as editable applescript documents.

Is it possible to launch an external image editor from Textmate?

Is it possible to launch an external image editor from the TextMate project drawer? I suppose the same concept would apply to launching any external editor from TextMate. Right now, if I right-click on the image file, I only have an option to open in Preview or Finder.
Thanks!
Yes. There is an (official) TM Bundle that does what you want--it's called "ImageBrowser." I installed recently and i have used it only once. It seems to work fine for the purpose you mentioned in your Question; in particular, it finds images in your current project and displays them in an image browser that runs inside TextMate.
You can get it from the Macromates SVN Repository.
TextMate respects the Finder's (well, LauchService's) "Open with" choice for each file. Whichever program would open when you double-click the file in Finder will appear in TextMate's contextual menu. Simply change this through the Finder's Get Info window for the file in question to the editor of your choice, and TextMate will respect it. It's dynamically populated, so you don't need to restart TextMate.
As far as I know, there's no method to specify a secondary program beyond the default.
I think no is the answer, but like Matt said, explore the usage of the Services menu.

Resources