Skip to content

Instantly share code, notes, and snippets.

@mayo
Created October 25, 2014 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayo/ce524ed1205e67cb5945 to your computer and use it in GitHub Desktop.
Save mayo/ce524ed1205e67cb5945 to your computer and use it in GitHub Desktop.
This patch should not be required to import your Aperture library into Lightroom, and I don’t recommend using it. I wrote it when I was having problems with the import, but have since found the source of the problems fixable within the Aperture library. Please see my updated blog post at http://oyam.ca/blog/2014/10/aperture-importer.html. This g…
--- Import.lua.orig 2014-10-25 10:13:07.000000000 -0700
+++ Import.lua 2014-10-25 10:41:34.000000000 -0700
@@ -154,15 +154,15 @@
local kwdInf, outputPath, err = Utils.getKeywordInfo( aperturePkg, workDir )
- if props.importOnlyUsedKeywords then
+ if props.importOnlyUsedKeywords and kwdInf then
for i, root in ipairs( kwdInf.keywords ) do
dropUnusedKeywords( root, kwdInf.keywords, i, kwdInf.usedKeywords )
end
end
- kwdInf.usedKeywords = nil
-
if kwdInf and outputPath then
+ kwdInf.usedKeywords = nil
+
return processExtractedKeywordInfo( kwdInf, cat, logger )
else
logger:infof( "Failed to obtain keyword info from %s with error %s", aperturePkg, err )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment