Skip to content

Commit

Permalink
Fix for permission error in Open in Favorite Editor (for Acorn)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Zeitler committed Nov 20, 2012
1 parent 7e63a2c commit 67be6e3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Open in Favorite Editor.applescript
Expand Up @@ -18,8 +18,9 @@
-- Version: 1.3
-- 1.0: Initial release
-- 1.1: Multiple file type support
-- 1.2 Added suggestions for improvements
-- 1.3 Documentation ;)
-- 1.2: Added suggestions for improvements
-- 1.3: Documentation
-- 1.4: Fix for permission error in Acorn
--

set fileList to {}
Expand Down Expand Up @@ -74,11 +75,11 @@ end repeat

-- open in favorite editor
repeat with currentFile in imageFileList
tell application favImageEditor to open currentFile
tell application favImageEditor to open (currentFile as POSIX file)
end repeat

repeat with currentFile in textFileList
tell application favTextEditor to open currentFile
tell application favTextEditor to open (currentFile as POSIX file)
-- you might want to put an additional "tell application "foo" to open currentFile" line
-- here in case you want to open, e.g. open a Markdown file in an editor
-- *and* a live preview app (like Marked).
Expand Down

0 comments on commit 67be6e3

Please sign in to comment.