Jump to content

Craigers

Member
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Craigers

  1. Love your work Andreas. I use multiple browsers and after much fluffing about with various bookmark syncing extensions (and my own failed attempts at building my own syncing system) - I've finally settled on Raindrop + your Alfred workflow. Thanks a bunch!! Just wondering if it's at all feasible for your Alfred app to access the raindrop database locally? Sometimes my connection is so weak that there are considerable hold-ups. It's not the biggest problem in the world but still. Even if it was just the search function that accessed local data - is that possible? I'm guessing it's all encrypted and Raindrop doesn't provide a local API to access that stuff?
  2. no problem. Sorry you'll have to manually make a nested folder, or just drag the folders around later after you've created them. If you're saving to an existing nested folder it should find it (but beware it will probably only place bookmark in the first folder of that name if you have duplicate names). Just make sure sub folders don't clash I guess (shouldn't be that much of a problem). I really don't have much control... all the script does is trigger existing functions in Safari - for instance the "Add Bookmark Folder" menu item which adds a folder to the root level. I can't really do much about adding nested folders without doing some pretty extreme GUI scripting. GUI scripting should really be reserved for pretty basic things though. One day if I actually figure out how to edit the Safari bookmarks without even using Safari GUI, I'll let you know. I can't seem to find any help out there though. Not sure if Apple have a friendly API for this kind of thing. If I get really bored one day, I might see what I can do with nested folders.
  3. Here is the workflow: https://github.com/Craig-Stowers/alfred-workflows/raw/main/BookmarkToFolder/Bookmark to Folder.alfredworkflow Remember it's a GUI script so you just have to not touch anything while the process is happening. If the folder already exists it's much faster (the folder creation process is a bit convoluted as you'll see!). If Apple changes the Safari GUI there is every chance it breaks too. I've only tested on my new MacBook Pro 14". The thing with GUI scripting is you have to allow time for events to occur before triggering the next action. I might have made the timings a bit too quick, but that's easy to fix. Where possible I've programmed the script to wait until the state of the application is a certain way before moving on which should allow for slower machines. I'm a little worried this could backfire and get stuck (for instance if the active app changes halfway through the process). Alfred should kill any process that gets stuck though. There is probably some more professional way to plug into the Safari bookmark system, but I'm not aware of it. Sometimes the only way to automate these things is to hijack the human interface Apple provides. If you find a better workflow please let me know :). End of the day, this is basic and hacky, but it's still very useful for me at least. Once you've tested, and I've added support for other browsers, I'll post in the "Share your Workflow" forum.
  4. Ok, I'll share soon. Honestly don't expect too much, no auto-fill at all - I might look at that in the future. It's what you call GUI scripting (using AppleScript) so it's only actions you can do manually with your mouse and keyboard anyway (except it's performed super fast). It's not "smart" and nothing feeds back into Alfred. I suppose I could generate a list of folders and feed that back... but I'm not sure I want to put too much effort into what will always be a hacky solution. If I'm going to do it "right" I'd want to do it fully right. The main reason for this workflow was to bookmark a Firefox page into Safari. I really don't want to have bookmarks spread across different browsers. If you're in Firefox the script does a bit more you see... it copies the URL, opens Safari, loads URL, stops the page load, bookmarks into folder, closes safari tab and then returns to Firefox. Using this workflow in Safari alone is useful... but not all that much faster than cmd+d and some mouse clicks. If you're a fast typist though - anything through text command is generally better I guess. It's a bit easier to create folders I guess too.
  5. Could you not do it a hacky way and just copy paste the file with some automated keystrokes? When triggered it will perform cmd+c, then open a finder location, then cmd+option+v to move. Apologies if I've misunderstood what you need though. if you wanted a more elegant way to copy/move files does this help? https://stackoverflow.com/questions/902342/applescript-copy-file-to-a-new-folder
  6. I use Firefox while docked and Safari undocked (to save battery), and I was bothered that it was so difficult to sync bookmarks between browsers. Anyway I figured I'd use Safari as my "single source" bookmark system. Safari was an easy choice because it works well with Alfred and I can use Alfred to search and launch Safari bookmarks into my current default browser anyway (I use another workflow to change default browser instantly). Anyway, that's the background. I made a GUI script to take the URL from the front window, open it in Safari and then bookmark to a specified folder. If the folder doesn't exist it will create one at the root (if it finds a nested folder it will target that). If Safari is already open it will just take that URL and proceed. It's a bit "hacky" because it uses the GUI and you'll see a few popups flash for a second. It seems to work very well though. If you're interested I can make the script more "public friendly" and share it. I've never shared an Alfred workflow so don't expect something fantastic. Ideally I'd write an application which could make edits to the Safari bookmark files in the system library without the user seeing anything change on screen. After a quick look at what's involved it's a bit beyond me at this stage! I could probably manage it, but it would take a long time. At any rate, what I have at the moment should do what you need it to do and it's snappy enough.
  7. Can someone explain how to add a reminder to a specific list? That's really the only functionality I need. It's a fantastic workflow but I can't find much help with commands...
×
×
  • Create New...