Jump to content
deanishe

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

Recommended Posts

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.  

Share this post


Link to post
5 minutes ago, johnyull said:

Is this folder permission issue.

 

No idea: you're not giving me anywhere near enough information to work with. Please follow the instructions in the Reporting Problems with Workflows sticky.

 

 

Share this post


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.   

Share this post


Link to post

This is a very useful workflow. However where do I find useful scripts for the apps? Are you guys all writing them by yourselves?

Share this post


Link to post
5 hours ago, gcao said:

Are you guys all writing them by yourselves?

 

Sometimes. Most of my own scripts are copied (or cobbled together from snippets) from forums/websites relating to the specific application.

 

Share this post


Link to post

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!

Share this post


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.

Share this post


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....

Share this post


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...

 

 

Share this post


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.

 

 

Share this post


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.

Share this post


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).

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...