Skip to content

Commit

Permalink
NewFile: Fix working with unicode paths
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorgalvao committed Jul 30, 2019
1 parent 9bdf9f0 commit d3adac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file modified NewFile/NewFile.alfredworkflow
Binary file not shown.
8 changes: 4 additions & 4 deletions NewFile/source/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ fi</string>
const frontmost_app_name = Application("System Events").applicationProcesses.where({ frontmost: true }).name()[0]
if (frontmost_app_name === "Finder") {
unescape(Application("Finder").insertionLocation().url()).slice(7).slice(0, -1)
decodeURI(Application("Finder").insertionLocation().url()).slice(7).slice(0, -1)
} else if(frontmost_app_name === "Path Finder") {
unescape(Application("Path Finder").finderWindows[0].target.url()).slice(7).slice(0, -1)
decodeURI(Application("Path Finder").finderWindows[0].target.url()).slice(7).slice(0, -1)
} else {
unescape(Application("Finder").desktop.url()).slice(7).slice(0, -1)
decodeURI(Application("Finder").desktop.url()).slice(7).slice(0, -1)
}
')"
Expand Down Expand Up @@ -353,7 +353,7 @@ done</string>
</dict>
</dict>
<key>version</key>
<string>1.2.4</string>
<string>1.2.5</string>
<key>webaddress</key>
<string>http://vitorgalvao.com/</string>
</dict>
Expand Down

0 comments on commit d3adac4

Please sign in to comment.