Jump to content
wbv

Fails on El Capitan: Open Folder via Apple Script Workflow

Recommended Posts

Opening a Folder via an Apple Script workflow fails on OS X 10.11 El Capitan

 

Facts

- fails for - working - workflows unchanged from Yosemite

- fails for most but not all workflows

- workflows are activated by shortcut

- workflows are Apple Scripts shown below

- for all below workflows the destination folders *do* exist and are standard, non-hidden, non-system folders that were successfully opened by Alfred on Yosemite.

 

 

 

Example of FAILING workflow

 

on alfred_script(q)

tell application "Finder" to activate
tell application "Finder" to open ("/Users/<redacted>/Documents/MyDocs/People" as POSIX file)
end alfred_script

 

 

 

Example of SUCCESSFUL workflow [same system, same user, etc]

 

on alfred_script(q)

tell application "Finder" to activate
tell application "Finder" to open ("/Users/<redacted>/Library/Developer/Xcode/DerivedData" as POSIX file)
end alfred_script

Share this post


Link to post

Sorry about the slow reply on this, it's taken me a while to get an El Capitan environment ready to try and reproduce.

 

1. What happens when you try using that AppleScript in Apple's AppleScript editor? Does it still fail?

2. Are you seeing any errors in Console.app, or Alfred's workflow debugger when it fails?

3. Could it be related to the hotkey being used?

4. Have you considered another method for opening the folder, such as the open command in bash?

 

Cheers,

Andrew

Share this post


Link to post

Hi Andrew, thanks for the reply.

This appears to be unrelated to Alfred. It happens in Finder itself, eg also from Xcode, doing "Show in Finder" fails.

I just "suffer" the most via Alfred, because I use it so often... multiple times per hour ;-)

Thanks for the bash suggestion, much easier than AppleScript for this purpose (and fails in the exact same way)

W

Share this post


Link to post

Hi Andrew, thanks for the reply.

This appears to be unrelated to Alfred. It happens in Finder itself, eg also from Xcode, doing "Show in Finder" fails.

I just "suffer" the most via Alfred, because I use it so often... multiple times per hour ;-)

Thanks for the bash suggestion, much easier than AppleScript for this purpose (and fails in the exact same way)

W

 

I'm going to move this to the discussion and help section to get more eyes on it, there may be somebody who can help point you in the right direction for the actual issue in Finder!

 

Cheers,

Andrew

Share this post


Link to post

[sOLVED]

 

Hi anyone stumbling upon this post.

 

As already indicated, this issue was unrelated to Alfred, just annoying because of the many workflows I use that boil to some "Open in Finder" via Alfred.

 

The issue was "solved" by pressing CTRL-ALT-DELETE by deleting ~/Library/Preferences/com.apple.finder.plist.

 

Sad but true.

W

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