Jump to content

AppScripts — List, search and run AppleScripts for the active application


Recommended Posts

  • 10 months later...
  • 11 months later...

Can't live without this workflow, but when I got a new MacBook I get the "alfred error in workflow permission denied er 13" message.  It still works on my other computer using the same Alfred preferences in Dropbox sync. Is this folder permission issue.  My Scripts folders seem to be both read/write permissible.  

Link to post

This has happened with a few Alfred Workflow, including my favorites, Appscripts, Menu items, Window Switcher etc.  Upon upgrading my new MacBook Pro and syncing Alfred with my old Mac via shared Alfred preference file in Dropbox , the old Mac continued running workflows just fine.  I solved the new problem simply by re-downloading this and other workflows.  So, it works fine right now.  This seems to be a larger question about the sync function.  For instance my new Mac, when searching brings up every possible item/element of all my Alfred workflows (Preference file in Dropbox) including every single (.jason, .py, , png etc.) where as my other computer does not.  I realize this does not relate to your workflow but there is clearly a dropbox sync issue, that lead me to believe mistakenly it was your workflow.  Sorry about that.   

Link to post
  • 11 months later...

Hi, just discovered the workflow (great work!) and installed. The problem I'm having is that it doesn't show me only the scripts for the active application, but shows me all scripts I have... I'm running under Mojave (10.14) and use Alfred3.

What am I doing wrong? Can somebody help?

Thanks in advance!

Link to post

Thanks for the reaction deanishe, but after I have done that, I keep getting the message "no scripts for Alfred 3"...

 

My directories are configured as follows:

 

~/Library/Scripts/Applications/{app_name}

~/Library/Scripts/Applications/{bundle_id}

~/Library/Application Scripts/{app_name}

~/Library/Application Scripts/com.omnigroup.OmniFocus3.MacAppStore

~/Library/Application Support/DEVONthink Pro Office/Scripts

~/Library/Application Support/{bundle_id}/Scripts

~/Library/Containers/{bundle_id}/Data/Library/Application Support/{app_name}/Scripts

 

What am I still doing wrong?

 

Thanks for the continued support.

Link to post

Apologies for the late response. Busy at work this week ?

 

Yes, I have followed the Alfred instructions....

 

When I just opened the appscript instruction I saw an update available, which I applied.

 

When I now run the .as command I do see the Omnifocus scripts but don't see the DEVONthink ones... And I see the Omnifocus scripts even when OmniFocus isn't active...

 

So, I just don't know anymore....

 

When I run with debugger, the script considers Alfred as the frontmost app, while I have changed to working for example to Omnifocus.. Makes sense because I am switching to Alfred when I activate the script....

Link to post

Next update:

 

I have now hardcoded the app_name and bundle_id again in the directory list, and I do see the scripts now, but again I see them always. So back to the challenge of only seeing the scripts of OmniFocus when working in OmniFocus, or DevonThink when I am working with DT...

 

 

Link to post
6 minutes ago, Qique said:

Makes sense because I am switching to Alfred when I activate the script....

 

Alfred should never be the active app. That's the way it's designed. It used to have an alternate mode where it did become the active app (it helped with multiple monitors), but that option seems to now be gone (perhaps @Andrew can confirm).

 

Have you tried setting the Hotkey in the workflow and running it that way? (I use ^⌘A).

 

Just now, Qique said:

I do see the scripts now, but again I see them always

 

You will if you've hardcoded a value.

 

16 minutes ago, Qique said:

When I run with debugger, the script considers Alfred as the frontmost app

 

Please post the full debugger output.

 

 

Link to post
11 hours ago, deanishe said:

Alfred should never be the active app. That's the way it's designed. It used to have an alternate mode where it did become the active app (it helped with multiple monitors), but that option seems to now be gone (perhaps @Andrew can confirm).

 

Alfred still has the focus compatibility mode in Appearance > Options, but it's very rare that compatibility mode is needed these days (if you're up to date with macOS).

 

Setting this option to "Compatibility Mode" in Alfred will make Alfred the front most (focused) application in macOS while Alfred's window is visible.

Link to post
2 hours ago, Andrew said:

Alfred still has the focus compatibility mode in Appearance > Options

 

@Qique check this setting in Alfred Preferences > Appearance. The Options button is at the bottom-left of the window if you, like me, couldn't find it (I was looking in the Advanced tab).

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...