Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

OP describes drag-and-drop creation of *.url files in Windows:

  [InternetShortcut]
  URL=https://www.afewthingz.com/browserbookmark
In macOS, selecting URLs and dragging to Finder creates *.webloc files:

  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  <plist version="1.0">
  <dict>
      <key>URL</key>
      <string>https://afewthingz.com/browserbookmark</string>
  </dict>
  </plist>


Weird note: you can't Airdrop .webloc URLs to your iPhone/iPad, ditto .textClipping, etc. macOS's edges have become more pronounced over time. Don't get me started on how many of Apple's apps don't have spring-loaded folders...


The lack of spring-loaded folders in apps drives me crazy. Apple needs to enforce for their teams because all the Electron Apps don't need another excuse (Slack is a particular pain point)


macOS (Sequoia 15.0) also handles *.url files appropriately: file type is identified as Web site location and opens with the default browser.


The real question is: do Windows and Linux browsers handle the .webloc variety?


At least on Linux it'd be relatively trivial to have a small script or application that registers to handle webloc files and feeds it into xdg-open.


It should be trivial on Windows too


Didn't know about this. Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: