Jump to content

lycopodiopsida

Member
  • Posts

    46
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by lycopodiopsida

  1. @Jasondm007 @PurplTentacle @MrShap Hi, I was absent from Alfred (and this forum) for some time, but I am back. Good news: I still have this workflow. Bad news: it is, of course, broken again and due to Applescript being one of the least readable script languages for me, I struggle to identify the problem. I've changed the folder references for Alfred 4 it it now down to the following error in the file nf_01.scpt: [23:42:36.565] ERROR: To New Folder[Run Script] 0:182: execution error: Can’t make file "Macintosh HD:Users:MY_USER:Library:Application Support:Alfred:Alfred.alfredpreferences:workflows:user.workflow.D95456CA-8699-47DE-AF7B-F94C00EC4EBC:nf_01.scpt:..:workflow.scpt" into type file. (-1700) (ignore the MY_USER, I've removed mine) So, I guess it boils down to the line 3 and the following code part: & "/.." on run argv set wf to load script POSIX file (POSIX path of ((POSIX file ((POSIX path of (path to me)) & "/..") as text) & "workflow.scpt" as text) as text) set wf to wf's new_workflow_with_bundle("com.sztoltz.newfolder") set sArgv to argv as text set someSource to {} if sArgv contains tab then set {TID, text item delimiters} to {text item delimiters, tab} repeat with i from 1 to the number of text items of sArgv set end of someSource to text item i of sArgv end repeat set AppleScript's text item delimiters to TID else set end of someSource to sArgv end if wf's set_value("alf_files", someSource, "settings.plist") tell application "Alfred 4" to search "❊ new folder " end run I don't have a real idea what this syntax does in AS - I can only assume it should call a script file from another script file. Any help on this one?
  2. I don't need it in finder, I need it in Alfred... There should be a file action after I select Item(s). Currently I am trying to reveal an old workflow (again), but it should be built-in and not a bunch of fragile AppleScript... It may be, actually, that LB uses the one from Finder due to its good integration with system. Difficult to check, since its internals are pretty much blackbox.
  3. I understand the feelings, but while I miss many things from LB by myself, including usage of system services, file navigation, name-based instead of abbreviation-based trigger and InstantSend with just any type of object anywhere, I also remember why I left it in the first place: no community work (the only forum abandoned and closed), no community-based repository for Actions and thus bad overall quality of them, no proper debugger and logging (every time I was to write an action or port one existing from Alfred I had a feeling I would hit a wall and just guess in the dark) and just a general feeling of riding a dead horse with no development and bugs fixed after 3 months. I guess you also had you reasons to switch launchers, since you are here. It seems like we can't have it all, but at the current stage I have more belief in Alfred fixing its problems, than in LB. Because it is, at least, being developed. For InstantSend I've settled to selecting files in Alfred with double ⌘ and for a separate workflow, which is triggered by ⌃+S which selects text, pastes it in Alfred and places a cursor before it so you can call a workflow on it. It is a clumsy solution compared to LB, but it works most of the time. What I really, really miss is the ability to select files and create a new folder with them. I was using it daily in LB - select files, create a folder and move it somewhere. Crazy how easy LB handles such things...
  4. While it may be not impossible, it would require to implement all the things provided by macOS like - all the low-level API for system commands, Spotlight search and indexing, previews and so on from scratch. All these things are basically granted in macOS.
  5. There is kind of search now in Alfred 4 - with "?" keyword you can find workflows too, but it will not show you the keywords and if you activate workflows found, it will just open them in the workflow editor. You can user this workflow instead as a workaround for now: http://www.packal.org/workflow/alfred-keyword-help and hope that at some point we don't have to rely solely on keywords As an idea - it would already help, if search in workflow names could be configured as one of the default fallbacks.
  6. I would also say, that allowing search with the name of the workflow would be a better solution. I can memorise maybe 5-6 workflows I use on the regular basis, but I have no chance to remember abbreviations for the rest of them. Launchbar makes it right - I can assign abbreviations, but I will always find them also via the usual "fuzzy search"-like entry. Since Alfred these days relies so much on workflows, we need a better way to find them.
  7. Hi, as far as I understand, the only option to perform operations on multiple files now in Alfred is to add them to buffer first. If would be helpful, especially for folders containing a lot of files, if files already added to buffer would be marked with colour in the file browser.
  8. I may have found the culprit. It seems that High Sierra rolled over the system version of ruby, where gems which a lot of workflows rely on, were installed. Have to test them with a debugger switched on one by one.
  9. I can confirm this issue. Obviously, it has nothing to do with single workflows, since it is affecting all of context-aware workflows. But as far as I noticed, this bug was introduced in Alfred 3.5 and has nothing to do with High Sierra. Can't say something more specific about timeframe, since I am mostly LB user and start Alfred only once or twice a month.
  10. Hi guys and girls, I have a couple of questions related to workflows. I want to do a workflow which should be able to distinguish between types of selected objects - text, folders and files. Based on type it should perform different actions. How does a argv object internally looks like? Does it even provide a mime-type information or converts everything to text? How can I properly debug workflows? With built-in debug I get only the output in the console. Is it possible to have a look into the argv object structure or set breakpoints in scripts?
  11. Actually, I've found another Wf addressing this issue: Autocomplete is missing, but it can be activated via actions menu. Still, such a feature should be a standard.
  12. Hello, I am a longtime Launchbar user, trying to get used to Alfred. I've noticed, that the quit command in Alfred is extremely limited. It basically allows you to quit only apps running in the Dock. If I want to quit an Application running in the dockless mode it is of no use. I would expect to have maybe the Applications running in dock in the suggestion list and get the rest of the running app by, let's say, autocomplete. The workflows I found so far are suffering from the same limitation.
  13. Ah, thank you. That's it - the Workflow works again For other readers: You have to change following things to make it working in Alfred 3: 1: in the file workflow.scpt change the numbers marked bold to "3" set my _cache to (my _home) & "/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/" & (my _bundle) & "/" set my _data to (my _home) & "/Library/Application Support/Alfred 3/Workflow Data/" & (my _bundle) & "/" 2: in the file nf_01.scpt change the line tell application "Alfred 2" to «event alf2Sear» "❊ new folder " to tell application "Alfred 3" to search "❊ new folder "
  14. I am pretty new to alfred workflows. Can anyone tell me, what this alf2Sear is? Is it an internal handler? Where is it documented? The error seems to appear in this script file: on run argv set wf to load script POSIX file (POSIX path of ((POSIX file ((POSIX path of (path to me)) & "/..") as text) & "workflow.scpt" as text) as text) set wf to wf's new_workflow_with_bundle("com.sztoltz.newfolder") set sArgv to argv as text set someSource to {} if sArgv contains tab then set {TID, text item delimiters} to {text item delimiters, tab} repeat with i from 1 to the number of text items of sArgv set end of someSource to text item i of sArgv end repeat set AppleScript's text item delimiters to TID else set end of someSource to sArgv end if wf's set_value("alf_files", someSource, "settings.plist") tell application "Alfred 3" to «event alf2Sear» "❊ new folder " end run
  15. Hello, I've done a test run with Launchbar 6, which I trashed after a couple of days because of huge memory usage and workflows ins Alfred. However, there is a feature, which I would like to see in Alfred... Ability to copy an item or piece of text and to pass it to another application or service/workflow. How would I do it in alfred? Is there a placeholder for the most recent content of a clipboard and a way to use services on it?Alfred seems to be very workflow-based, which is a good thing. But many of those workflows would be obsolete, if we could "chain" files/selections and perform actions on those with apps and services.
  16. When I try to import the workflow, I get the following text: Incompatible Workflow This workflow was created with a newer version of Alfred. Update Alfred to the latest version (or pre-release) to use this workflow.
  17. Well, I guess, I need some help with that - don't even know, how to start Any thoughts to enable it as default search options in the next version of Alfred? Maybe as an option?
  18. Here is the output: /Users/sergej/Downloads/903290109_ftp.pdf Internal File Metadata ====================== Display Name: 903290109_ftp.pdf Alt Names: File Type: com.adobe.pdf Comments: Keywords: Last Used: Raw mdls File Metadata ====================== kMDItemContentCreationDate = 2014-04-23 11:28:17 +0000 kMDItemContentModificationDate = 2014-04-23 11:28:17 +0000 kMDItemContentType = "com.adobe.pdf" kMDItemContentTypeTree = ( "com.adobe.pdf", "public.data", "public.item", "public.composite-content", "public.content" ) kMDItemCreator = "Acrobat 5.0 Paper Capture Plug-in for Windows " kMDItemDateAdded = 2014-04-23 13:06:39 +0000 kMDItemDisplayName = "903290109_ftp.pdf" kMDItemEncodingApplications = ( "PDFlib PLOP 2.0.0p6 (SunOS)/Acrobat 4.05 Import Plug-in for Windows" ) kMDItemFSContentChangeDate = 2014-04-23 11:28:17 +0000 kMDItemFSCreationDate = 2014-04-23 11:28:17 +0000 kMDItemFSCreatorCode = "" kMDItemFSFinderFlags = 0 kMDItemFSHasCustomIcon = (null) kMDItemFSInvisible = 0 kMDItemFSIsExtensionHidden = 0 kMDItemFSIsStationery = (null) kMDItemFSLabel = 0 kMDItemFSName = "903290109_ftp.pdf" kMDItemFSNodeCount = (null) kMDItemFSOwnerGroupID = 20 kMDItemFSOwnerUserID = 501 kMDItemFSSize = 1542022 kMDItemFSTypeCode = "" kMDItemKind = "Portable Document Format (PDF)" kMDItemLogicalSize = 1542022 kMDItemNumberOfPages = 14 kMDItemPageHeight = 792.2395 kMDItemPageWidth = 594.7196 kMDItemPhysicalSize = 1544192 kMDItemSecurityMethod = "None" kMDItemTitle = "Mapping of octopamine-immunoreactive neurons in the central nervous system of the lobster" kMDItemVersion = "1.3" I am searching for "mapping", but alfred just can't find the document. Spotlight does.
  19. I have noticed, that alfred is unable to find some pdf documents. This is not a spotlight-related issue, since I've let it rebuild the index and spotlight, in fact, finds those documents. All the extra options, like "find" or "open" don't get any results. ~/Desktop and ~/Downloads are in search scope. Search for "Documents" is enabled in "Default Results". This may be an issue with tags in pdf documents, because alfred is able to find other pdf documents in the same folder, but, as I said, those are not a problem for spotlight. I run alfred v2.2 with powerpack on the latest Mavericks. If you contact me, I could send you those documents per email. Sorry, but I can't leave them in public access, since those are scientific publications, normally behind a paywall, so there could be trouble.
×
×
  • Create New...