save webpage as a url file and open with chrome - macos

How can I simply save a webpage in chrome as a text based url file that when clicked in finder opens the webpage in chrome?
Here is what I have so far found and tried: the following code:
[InternetShortcut]
URL=http://http://stackoverflow.com/
(it needs an empty line at the end too but I couldn't get that shown in the code above). When saved as a .url file and kept simply in my filesystem, and click on it it opens the webpage directly in safari (since I am on a mac with osx). I want this to open in Chrome, but changing the "open with" settings opens the file as a text file; it doesn't execute and take me to that webpage.

I was in your exact same situation Geoff, and I was able to find this after digging through a ton of forums.
Open up Chrome/Firefox and go to the web page you were wanting to save.
Look at the address bar.
Find the padlock icon that is just to the left of your URL string. It may look like a page, or a lock, or a lock with a yellow triangle.
Click and drag it to the Desktop and then drop it.
This will create a webloc file, and for me it shows a Safari icon as the file image, even says Safari is the default program to open it. However, when I click on it, it always opens up in Chrome! :)
Hope this helps.
Using Chrome Version 29.0.1547.76
OSX 10.9.2

https://stackoverflow.com/a/22768604/10258377
Thank you #AZRckCrwler.
I would like to make it easier to understand base on his answer.
Find the padlock icon that is just to the left of your URL string. It may look like a page, or a lock, or a lock with a yellow triangle.
You can see the circle that I marked, then drag & drop here.

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

Where is the windows terminal settings location?

I edited the settings file and there must have been a typo and now the app crashes on startup.
Online the documentation says the settings lives in $env:LocalAppData\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json
I can't figure out what that path means since it doesn't exist on the computer.
I re-installed the app to fix the problem then made sure to see what the actual path is.
It's located in : C:\Users\{USERNAME}\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState
In the current version (1.7.1033.0), the application can open the JSON settings file for you via a button. Open the Settings tab, and the bottom left corner will have a button named "Open JSON file". Clicking that button will open a prompt asking with what application to open the file. That text editor can then tell you where the file is located.
If you open the terminal settings, it will open a text editor with the settings.json file. If your default editor is VS Code it will show you the path below the tabs on the top of the screen.
I'm unsure what other editors show you the path, but if it is crucial you can change your default text editor to Code.
There is still the option to open the JSON file through settings. In version 1.15.2875.0 you can still find the "Open JSON file" at the bottom left corner
Screenshot with highlights
This hint was given by a comment by user1340531:
Mine is at C:\Users\{username}\AppData\Local\Microsoft\Windows Terminal\settings.json
(or more generically: %userprofile%\AppData\Local\Microsoft\Windows Terminal\settings.json)
If it's not there, you should consider OP's answer or vyps comment which lets you find out one of these generic paths (they are equivalent):
%userprofile%\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState
%LocalAppData%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState
$env:LocalAppData\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState
If you don't know what these paths mean, I'd recommend playing around with "Windows Run" (Win+R) and the explorer address bar.

Windows Shell Desktop Preview

I've installed Rainmeter with Honeycomb and want only a simple Icon, which will act like the Windows "Show Desktop" Button in the right corner.
Well so far so good, I've got it working, that when I click on the Icon my Desktop will show up and the rest will be minimized:
...
LeftMouseUpAction=["shell:::{3080F90D-D7AD-11D9-BD98-0000947B0257}"]
...
Well now I want that when I hover over it, the preview will be shown:
MouseOverAction=[" Insert Magic --> Here <-- "]
Well this is my Problem, if anybody knows which Shell Command this is, or how it could be achieved, pls share your ideas with me.
It might not be a good way, but you can do this:
Open up the folder where the ini file of the skin is.
Right click anywhere on the blank portion of the window and select New>Shortcut.
A dialog box will appear, asking you to locate the file the shortcut should point to.
Inside the text box, paste this:
C:\Windows\explorer.exe shell:::{3080F90D-D7AD-11D9-BD98-0000947B0257}
Click next. The dialog box will ask you to put a name for the shortcut. Put any name you like and press Finish to create the shortcut.
Replace the LeftMouseUpAction line with this:
LeftMouseUpAction=!Execute ["#CURRENTPATH#"name of your shortcut".lnk"]
For example, if your shortcut's name is launch, then the line should be
LeftMouseUpAction=!Execute ["#CURRENTPATH#launch.lnk"]
You're good to go!

Force Firefox to reuse existing tab for modified HTML file

If Firefox is already displaying a local HTML file on my PC in a tab (address = "file:///...") and I modify the file using my favorite external editor, sending the file to FF to display the edits results in FF opening a new tab with a fresh instance of the original file, rather than searching to see if the file is already open it it and reusing that tab.
Sure, after editing the file I could reopen Firefox, navigate along the tab bar to the existing tab for that file and click Refresh. But IMO FF should be capable of doing this for me. In my work, by the time I need to refresh FF, the tab currently open is not likely to be that of the file I am editing, so I continually need to return to the original page to refresh it.
My efforts to work around this include:
1)In about:config, *setting browser.link.open_newwindow* from 3 to 1.
2)Running Firefox and passing it either the filename or the URL to the filename (as -url parameter).
3)Looking for a suitable add-on.
I am not fond of either Firebug or Aurora and prefer my own editor (EditPlus), which with I am far more comfortable, to edit web pages. However, its inbuilt browser does not display properly on my screen, so I need to view results of edits in Firefox.
Can anyone suggest a solution to this problem? I've searched here without success. The best solution would be another about:config setting. Thanks in advance.
(added) After all, in EditPlus, if I send it a file (in document-centric mode) which it has already opened, it simply changes focus to the existing tab. Why can't FF do this?
Thanks for suggesting the "Restore Open_External" add-on.
I tried it but it doesn't help me here. What it does is:
(quote)
"browser.link.open_external (Integer). This option specifies how Firefox opens links launched externally, e.g. e-mail or Microsoft Word. 3 options are available;
1. Selecting this option launches the link in a new tab in the most recently active Firefox window. This would be recommended if you don’t wish launching such links to affect your most recently active webpage and you aren’t concerned about the links content.
2. Selecting this option launches a new Firefox window to view the link. This would perhaps be the safest option to select (In that if you launch something questionable you may be able to end the process without affecting other windows).
3. Selecting this option (default) launches the link in the most recently active Firefox window/tab. This would be recommended if you aren’t concerned about launching links is the most recently active window/tab (You can always use the back button to view the previous page if you need)."
TechSpot - Firefox 2 Tweak Guide
I'm sure many find this useful. Option 1 would have been fine for my purposes if it didn't insist on opening a duplicate tab. This add-on does nothing to prevent duplicate tabs being opened. So I began hunting for some add-on that might PREVENT a new tab being created in response to an external app sending a file to Firefox. Tab Mix Plus is supposed to do this, but I got lost somewhere in the maze of options. Then there is Prevent Duplicate Tabs, which creates a whitelist of all pages where duplicates are not permitted. This is far from automatic and seems pretty lame to me, as is Duplicate Tab Closer which doesn't prevent a duplicate tab from being created; instead, you have to press Ctrl+Alt+D to remove existing duplicate tabs - equally lame. deduplicate-tabs is similar, but offers a button to remove duplicate tabs.
Maybe I'm missing the point, but I can't see why anyone would want duplicate tabs of the same page, one a later version than the other. In fact, FF ought to be able to automatically refresh a tab when one reselects this, without having to resort to the "refresh" button. But that's just my rant.
If anyone reading this can think of a better way to integrate FF with an external app that modifies a web page, I'll be most grateful.
Install that addon:
https://addons.mozilla.org/en-us/firefox/addon/restore-open_external/
Go to addon preferences and set:
'in the current tab of current window'
Next time you open a new url from an external program it opens in the same tab.
You can also install the
duplicate tabs closer firefox addon which, as the name suggests, allows you to automatically close duplicate tabs
You can configure it to:
Close the older tabs and keep the new tab
Select the new tab
Try this addon.
I'm using it for development mode in Gatsby and Create React App.

firefox brand new “new tab page” - how to see/edit blocked/pinned items?

While it's simple to pin/block a link-screenshot in the new beautiful tab page in firefox I see no way to edit the list of blocked/pinned items, does anybody know how to do it?
E.G. I blocked a page but now I woukld like to unlock, how to do it?
Thanks.
This is for FF17 on Windows, Mac/Linux users cf below
To unlock a blocked page quit Firefox, download sqlitebrowser at sourceforge.net (~6MB as of now, Windows only), use it to open chromeappsstore.sqlite in your "Profiles" directory. On Win Vista that's eg:
[DRIVENAME]:\Users\[USERNAME]\AppData\Roaming\Mozilla\
Firefox\Profiles\[ALPHANUMERICSTRING].default\chromeappsstore.sqlite
Switch to the "browse data" tab, open the edit view of the value corresponding to the "pinned links" key (double click on it). Replace one entry (eg a null) with
{"url":"YOUR_URL","title":"YOUR_TITLE"}
apply changes, save changes.
There's a key "blocked links", too. Intuitively, deleting blocked urls from its value should help, but it didn't when I tried. The trick above is clumsy, but so far I couldn't google anything more elegant. I couldn't find anything useful searching Firefox' about:config tab, either. I found this solution when doing a string search for the blocked url in my profiles directory.
Mac/Linux users should find other sqlite browsers. When using the firefox addon SQLite Manager you would need to make a copy of the database file first and edit that. Afterwards quit Firefox and replace the old file with the new one.
Here's the bugzilla entry ("Bug 722234 - [New Tab Page] provide an option to undo remove a site "), status is assigned, not solved. On comment reads: "Currently, there is now way to undo removal of a site or resetting the page using the new layout."
There's an easier way to do it without downloading, especially for people who may not navigate computers very well. Mozilla does have a way to do it, they just label it poorly and it's a bit roundabout.
Make the page you blocked on your new tabs page a Favorite, then click and drag to an empty space on your new tab page and it will autopin. The one downside is that if you unpin it the site will disappear again. I was frustrated for weeks after I removed Google and there doesn't seem to be much help out there that's simple.
"Make the page you blocked on your new tabs page a Favorite"
What does that mean? Bookmark?
I clicked the PIN icon on a couple and instead of pinning it, it seemed to completely remove that page from the New Tab selections altogether...and indeed, I see no way to get it back. Why would pinning something take it away!? And they were pages I use many times every day; very disappointed.
And those that I clicked ARE in my bookmarks ('Favorites' is an IE term), but they have not reappeared as suggested above.
The sqlitebrowser approach above is too complex and I can see it going awry trying to get all that right. Sad day here for me.

Resources