Remove aperture library
Hello,
i've made a copy of my aperture library to dropbox, so i would be able to work on both my macbook air and the imac.
This works but now i have an old, unused library on my imac wich is taking about 50 Gb of my hard disk.
When i try to remove this is says "De bewerking kan niet worden voltooid, omdat reservekopie-onderdelen niet kunnen worden gewijzigd."
wich is dutch, but translated it means something like "the action can not be completed becaus backup-parts can't be changed"
Where ever i look on the internet i can't find anyone having this problem, let alone find a solution.
I have lion installed (latest version) and aperture 3 (latest version)
Please, anyone, help me free my harddrive...
Before you delete your old Aperture library, make sure that you have another working backup of your current library outside Dropbox, I really wouldn't rely on that as the only copy, even if Dropbox is a very reliable "cloud" storage.
Similar Messages
-
With the latest versions of iPhoto and Aperture, I have been able to open the iPhoto library in Aperture. I purchased Aperture months ago in order to edit photos to a greater degree than iPhoto offers. At first, I imported the iPhoto library into Aperture, but I have done little editing in Aperture. All of the editing has been done in iPhoto. My question is this: Since all of my editing has been done in iPhoto, but I now plan on using Aperture for editing (using the iPhoto library) as well as iPhoto, can I delete the Aperture library? The Aperture library is more than 50GB, so I could use the HD space.
Before deleting the Aperture library make sure you can open the iPhoto library with Aperture and that all your current work is there. If that works and you are sure thee are no images in the Aperture library you want you can delete it.
Of course having a backup of of somewhere would be a good idea just in case.
Regards -
Accidental PS edit save to the Aperture Library / How to remove
In my haste I accidentally saved a ps edit to the aperture library instead of the desktop. Normally I wouldn't be concerned about it but it's meant to print to mural size and it's huge. I can see it in the save directory via PS but am otherwise unable to get to it via the finder.
Any thoughts would be appreciated.
ThanksAll this is a big help but...
I think he might be asking how to navigate the Aperture library via finder because he can't see the file in Aperture. Maybe not. In any case you can right click on the Aperture library and use show package contents to navigate within the library.
If you do be berry berry careful when hunting wabbits.
RB
Ps. Was that tactful enough or is someone gonna call me names? -
Aperture library removed after transfer to Photos
Hi
Wonder if anyone can help - I made a mistake and imported my Aperture library into Photos without thinking...and it seems to have deleted the Aperture library, so when I open Aperture there is nothing in there...no projects, albums etc. How can I restore this to Aperture and delete the Photos library??
Thanks!If your images were stored in the Aperture Library, migrating them to Photos should have left the Aperture Library intact, although with a different suffix. Check in Users > Pictures (or wherever you kept the library) to see if you can manually locate and launch it.
If your images were "referenced" in Aperture (stored outside of the Library file) and your Photos preference was set to move them to the Photos Library, then it is possible that Aperture no longer can "find" them.
To restore the Aperture Library folder use your Time Machine, or other, backup. There is no automatic way to migrate Photos back to Aperture, that I know of. -
Hi all,
I was getting messages that my Aperture Library was full, so made an appointment at my closest Mac store, but have to wait 2 days. They advise you to update saoftware before coming in, so I updated to Aperture 5.3.1. When I open it, I'm asked to update my library. When I select that option, I'm told that my library is full. Now I can't access my library at all. What should I do to access my library? Do I have to uninstall 5.3.1 and reinstall an older version?
Another problem I have recently encountered ... all the up and down scrollers on various screens have disappeared. They reappear fleetingly when I use my up and down arrowa, but I can't always catch them. How do I get my scrollers back?Thank you so much for your patient guidance and screen captures.
You are welcome.
My external hard drive is properly formatted for Aperture, so I am currently copying my Aperture library to it. That will take hours since it is copying 101 GB.
o.k.
I understand that I need to clean some space on my internal hard drive and reformat the Aperture library to get back in operation.
You need to upgrade the Aperture library to be used with Aperture 3.5.1. That will happen automatically, when you first double click the copied lirary to open it in Aperture.
I'll also need to back up my external drive with a new external drive if I make space on my internal drive by removing some photos from there and store them on my current external drive.
What do you use for backup? If you are using TimeMachine it is better to have only the Time Machine backup on the Time Machine drive . In that case would I put the Aperture library and other data on a new drive and keep the old drive for backup. -
Can you move the aperture library without losing images?
my library is defaulted to imac..
but can you house it on external drive..I know, yes, as a referenced library.
but I already have some [lots] images in library.
can I move the library and maintain contents?
also..
once you import into library, is the original image in folder it was in before? or it's deleted?
just trying to see what will work best for my needs?
as I sometimes travel/live in 2nd home and just carry external drive
thanks for input/suggestionMenu>File>Vault
Creating what Ap[erture calls a 'Vault' seems like the easiest way to do it.
Here is the complete Help section on backing up your library.
QUOTE:
As you begin working with Aperture, it’s important to perform regular backups of your photos. Using the Aperture backup system, you can create backups and update them whenever you wish. Aperture tracks your backups and indicates how up to date your most recent backup is. In the rare event of equipment failure or an unforeseen catastrophe such as a fire or weather-related damage, you can easily restore the entire Aperture library onto your computer or a new computer.
You set Aperture to back up a copy of the library to a designated storage area called a vault. For safety and redundancy, use external hard disks to hold your vaults. You can create as many vaults as you deem necessary.
When you back up your photos, Aperture makes a complete copy of the library in its current state. If you remove items from the library, those items are removed from the backup when it is next updated.
All originals for managed images, all versions, and all metadata, previews, and adjustment information associated with your photos are backed up. The versions, previews, and metadata associated with referenced images are also backed up in the vault.
Important: Referenced images’ originals are not backed up in the vault with the library. Because the originals for referenced images are stored outside of the library, you must manage the backup and archiving of them yourself.
A typical backup system used with Aperture might look like the following:
This system backs up the Aperture library to two vaults stored on external hard disks. You routinely back up the library on one external hard disk. You use the second hard disk as a backup that you keep offsite. You can then rotate your onsite external hard disk with the offsite hard disk to keep all your vaults updated.
To set up your Aperture backup system, you need to do the following:
Determine the number of vaults you need. For example, do you need one for routine backups, one for weekly backups, and one for offsite storage?
Determine the number of hard disks you need for routine backups.
Determine the number of hard disks you’ll use for storing backups offsite.
Connect your hard disk drives to your computer.
Open Aperture and create the vaults you need, assigning a hard disk to each vault.
Update the new, empty vaults with copies of the Aperture library.
Disconnect one of the vault hard disks and take it to an offsite location for safekeeping.
When planning the amount of storage space you’ll need, estimate the amount of disk space needed to hold your existing digital images (photos you plan to import into Aperture) and the amount of space you might need for new projects. For example, RAW images typically require 8 to 25 or more megabytes (MB) of disk space per file. Estimating the number of photos in a typical project and the number of projects you usually create in a year, you can make a rough estimate of what might represent a year’s storage space. -
How do I remove Aperture trial and go back to iPhoto (be kind, I'm new).
How do I remove the Aperture trial and go back to iPhoto. For my usage (just iPhone pics/movies) iPhoto is okay for me, but now I cannot figure out how to remove Aperture, when I drag to Trash I get a warning that Aperture is a system file.
Please help, but also, please go slow if you can help, I am new to my Mac.Should be pretty easy as follows:
1 - Make sure you have copies of any pictures you want that are inside Aperture somewhere on your computer.
2 - Quit Aperture > Remove any Aperture icon from dock > drag the Aperture program (lens icon) from Applications folder to the Trash > proceed through any warning dialog (including entering password as required) to complete the process.
Note - new security features in OS X Lion may present those warning dialogs to prevent accidental deletion of Apple programs.
3 - Hold down the 'Option' key and use the 'Go' menu in menu bar and select the 'Library' option.
4 - In the Library folder, open the 'Application Support' folder and delete any Aperture folder found.
5 - While still in the Library folder, open the 'Preferences' folder and delete both the 'com.apple.Aperture.plist' and 'com.apple.Aperture.plist.lockfile' file.
6 - While still in the Library folder, open the 'Caches' folder and delete the 'com.apple.Aperture' folder.
7 - Go the your 'Pictures' folder and drag the 'Aperture Library' (may be named Aperture Trial Library or similar) to the Trash to delete it as well.
8 - Empty the Finder Trash to remove Aperture.
Note - there are some files and Aperture folders in the '/Library' folder (which is in the root of your system drive), but you don't really need to remove those. Since you are a beginner, it is probably better not to for now.
That should do it.
Additional edit: There are two Library folders I am referring to. The first is the one in your user account 'Home' folder which is the one you are going to by using the 'Go' menu. This is the one you are deleting files from in the steps listed. The second Library folder is the one in the root of your system drive and is not typically a location for beginners to work with (thus the final note above). Hope that is clear enough.
Message was edited by: CorkyO2 to add clarity concerning the 'Library' folder. -
File Location in Aperture Library
So, I'm new to aperture having transitioned from Lightroom.
When I set up my aperture ilbrary I oould have sworn I maked keep images in current location (where I had them stored in LR). Those files show in finder to be 681GB. When I look at my new aperture libray, it's 745GB. So I presume that I've inadvertanly set up an aperture library with the images stored within. Is this a correct assumption?
If I leave it this way, what do I lose? Can these enormous files become corrupt? I only do a backup offsite once a month or so.
Should I delete this new aperture library and re-import w/o moving the files?Stevej2001 wrote:
So, I'm new to aperture having transitioned from Lightroom.
When I set up my aperture ilbrary I oould have sworn I maked keep images in current location (where I had them stored in LR). Those files show in finder to be 681GB. When I look at my new aperture libray, it's 745GB. So I presume that I've inadvertanly set up an aperture library with the images stored within. Is this a correct assumption?
Based on the size, I would say that it is indeed a 'Managed Library' where all your images are being stored inside the 'Aperture Library' package.
If I leave it this way, what do I lose? Can these enormous files become corrupt? I only do a backup offsite once a month or so.
Other than an OS corruption or Disk corruption, it is the database inside the Aperture Library that can become corrupt, which does not compose a huge issue as you can always manually remove the Master images in the worst case scenario.
Should I delete this new aperture library and re-import w/o moving the files?
Many people choose a 'Referenced Library' (which is what Lightroom uses) for a number of reasons. The most common reasons are; 1 - long term storage needs for Masters may exceed internal drive space; 2 - using manually created 'Finder' folders is preferable to using the Library Inspector view; 3 - Master files will be stored in an easily accessible form if the Aperture database gets corrupted beyond fixing and you at least have the Masters already filed logically and easily managed for a new system or library.
In the end, it is up to you; but deleting the new library and re-importing while leaving the Masters in their current location should be in line with what you have been doing with Lightroom. This would mean doing backups of the Masters and Aperture Library as separate operations (not a big deal if you have the external resources for copying). -
Error when trying to import from Aperture Library
I'm trying to import my Aperture Library into Lightroom using the "Import from Aperture Library" plug-in. Every time I get a "?:0: attempt to index a nil value" error as soon as I click the Import button. I've tried removing Lightroom (and its ancillary files) and re-installing, I've tried different destination disks for the import, I've repaired the Aperture Library, nothing helps - the same error appears every time. I'm using a Retina iMac with OS X Yosemite and LR 5.7.1. Any suggestions? Thanks, Jack
Hi Jack
I think it may still be work in progress and you may need to wait a little. Problems have also been reported importing from iPhoto. See this thread:
https://forums.adobe.com/message/7088434 -
Export Aperture library objects to Finder folders
Inspired by the posted message by user http://discussions.apple.com/profile.jspa?userID=616539 I wrote a script that will do the following:
1. Sync Folders/SubFolders/Albums/Projects..etc hierarchy tree from Aperture to a Finder folders tree
2. At run-time the script will creates/append to a log file under (home directory)\Library\Logs\AppleScriptExportApertureLibrary.log
3. Exports all projects images versions with embedded metadata
4. Create a file system "hard links" for each photo in the respective Albums pointing to the project folder location in order to preserve space.
5. Compare modification date on the image files and modification date within Aperture and export only modified images in order to save time for a full sync/export.
6. In interactive mode you can select Export Folder location, Aperture Library location and Projects List (project list will contain project name and internal aperture project id).
7. In non-interactive (from command line) mode there are two arguments:
7a. "quiet" - exports all projects
7b. "quiet" "Project Information" - export only certain projects. the project information can be found in the log file.
8. Remove any images or folders from Finder export directory that do not exist in Aperture database any more.
Hopefully this would help anyone who is looking to export from Aperture on a regular basis. I am not sure how it will handle large amount of photos. I tested it with 3k+ photos.
Please note that you use this script at your own risk.
Here is the script code:
global theFoldersTree_G
global theLibraryPath_G
global theProcessedProjects_G
global theSelectedProjects_G
global theAllAlbums_G
global theScriptName_G
global Sqlite_G
global ApertureLibrary_G
global numExports_G
on run argv
set Sqlite_G to "/usr/bin/sqlite3"
set ApertureLibraryPath to POSIX path of (path to home folder) & "Pictures/"
set ApertureLibrary_G to ApertureLibraryPath & "Aperture Library.aplibrary/Aperture.aplib/Library.apdb"
set exportFolder to POSIX path of (path to home folder) & "Pictures/Aperture Exports/"
set theScriptName_G to "ExportApertureLibrary"
set theSelectedProjects_G to "ALL PROJECTS"
set theFoldersTree_G to {}
set theProcessedProjects_G to {}
set theAllAlbums_G to {}
set numExports_G to 0
logEvent("Started")
set theArgv1 to {}
set theArgv2 to {}
if (count of argv) ≥ 1 then
set theArgv1 to item 1 of argv
end if
if (count of argv) = 2 then
set theArgv2 to item 2 of argv
end if
logEvent("Passed ARGV 1: " & theArgv1)
logEvent("Passed ARGV 2: " & theArgv2)
if theArgv1 is not equal to "quiet" then
set theFile to (choose file with prompt "Please choose the Aperture Library file" default location POSIX file ApertureLibraryPath) as string
set ApertureLibrary_G to POSIX path of theFile & "Aperture.aplib/Library.apdb"
set exportFolder to POSIX path of (choose folder with prompt "Please choose the export folder" default location POSIX file exportFolder) as string
end if
logEvent("ApertureLibrary_G path is set to: " & ApertureLibrary_G)
logEvent("exportFolder path is set to: " & exportFolder)
try
tell application "Aperture"
logEvent("Getting list of project path information...") of me
set SqlStatement to "
select replace(A.ZLIBRARYRELATIVEPATH,'.approject',''),A.ZUUID
from ZRKFOLDER AS A
WHERE A.ZFOLDERTYPE=2
ORDER BY A.ZNAME"
set SQLProjectUUIDPath to DB_execute(SqlStatement) of me
set theProjectsOptions to SQLProjectUUIDPath as list
set end of theProjectsOptions to "ALL PROJECTS"
logEvent("Projects list: " & theProjectsOptions as string) of me
if theArgv1 is not equal to "quiet" then
set theSelectedProjects_G to choose from list SQLProjectUUIDPath with prompt "Please choose a project(s):"
end if
if theArgv2 is not equal to {} then
set theSelectedProjects_G to theArgv2
end if
logEvent("The selected projects : " & theSelectedProjects_G as string) of me
logEvent("Getting list of libraries...") of me
set theLibraryList to every library
logEvent("Found " & (count of theLibraryList) & " libraries") of me
repeat with theLibrary in theLibraryList
set theLibraryName to name of theLibrary
logEvent("Processing library: " & theLibraryName) of me
set LibraryFolders to {}
set theProcessedProjects_G to {}
tell application "Finder"
if not (exists (POSIX file (exportFolder & theLibraryName) of me)) then
logEvent("creating new folder " & theLibraryName & " at " & exportFolder) of me
make new folder at (POSIX file exportFolder of me) with properties {name:theLibraryName}
end if
end tell
set theLibraryPath_G to exportFolder & theLibraryName & "/"
logEvent("Getting list of folders...") of me
set theFolderList to every folder of library id (id of theLibrary)
logEvent("Found " & (count of theFolderList) & " folders") of me
set theRootFolderList to {}
if theFolderList is not equal to {} then
processFoldersTree(0, theFolderList) of me
repeat with theFolder in theFolderList
if (id of theFolder) is not in theFoldersTree_G as string then
logEvent("Found root folder : " & (name of theFolder) as string) of me
set end of theRootFolderList to theFolder
set end of LibraryFolders to (name of theFolder)
end if
end repeat
end if
if theRootFolderList is not equal to {} then
processFolders(theRootFolderList, theLibraryPath_G, "projects") of me
processFolders(theRootFolderList, theLibraryPath_G, "albums") of me
else
set theProjectList to every project of library id (id of theLibrary)
set end of LibraryFolders to processProjects(theProjectList, theLibraryPath_G, "projects") of me as list
processProjects(theProjectList, theLibraryPath_G, "albums") of me
end if
logEvent("Getting list of projects...") of me
set theProjectList to every project of library id (id of theLibrary)
logEvent("Found " & (count of theProjectList) & " projects") of me
logEvent("Getting list of albums...") of me
set theAlbumList to every album of library id (id of theLibrary)
logEvent("Found " & (count of theAlbumList) & " albums") of me
set theRootProjectList to {}
if theProjectList is not equal to {} then
repeat with theProject in theProjectList
if (id of theProject) is not in theProcessedProjects_G as string then
logEvent("Found root project : " & (name of theProject) as string) of me
set end of theRootProjectList to theProject
set end of LibraryFolders to (name of theProject)
end if
end repeat
end if
set theRootAlbumList to {}
if theAlbumList is not equal to {} then
processAlbumsTree(theProjectList, theFolderList) of me
set theRootAlbumList to {}
repeat with theAlbum in theAlbumList
if (id of theAlbum) is not in theAllAlbums_G as string then
logEvent("Found root album : " & (name of theAlbum) as string) of me
set end of theRootAlbumList to theAlbum
set end of LibraryFolders to (name of theAlbum)
end if
end repeat
end if
if theRootProjectList is equal to {} then
processAlbums(theRootAlbumList, theLibraryPath_G, "albums") of me
else
processProjects(theRootProjectList, theLibraryPath_G, "projects") of me
processProjects(theRootProjectList, theLibraryPath_G, "albums") of me
if theRootAlbumList is not equal to {} then
processAlbums(theRootAlbumList, theLibraryPath_G, "albums") of me
end if
end if
cleanup(LibraryFolders, theLibraryPath_G, "all") of me
end repeat
logEvent("total exports : " & numExports_G) of me
if theArgv1 is not equal to "quiet" then
display dialog "Total image exports : " & numExports_G buttons {"OK"} with title "Aperture Library Export" with icon note
end if
end tell
on error s number i partial result p from f to t
set s to "Error: " & s
logEvent(quoted form of (s))
if theArgv1 is not equal to "quiet" then
display dialog "ERROR : " & s buttons {"OK"} with title "Aperture Library Export" with icon note
end if
end try
end run
on cleanup(theObjects, thePath, theSelection)
logEvent("Cleaning export folders...") of me
logEvent("# Objects: " & (count of theObjects)) of me
logEvent("Export Folder: " & (thePath as string))
tell application "Finder"
logEvent("Getting list of folders...") of me
set theFolderList to every folder in folder (POSIX file thePath of me)
logEvent("Found " & (count of theFolderList) & " folders") of me
logEvent("Getting list of files...") of me
set theFileList to every file in folder (POSIX file thePath of me)
logEvent("Found " & (count of theFileList) & " files") of me
repeat with theFolder in theFolderList
set theFolderName to name of theFolder
if theFolderName is not in theObjects as string then
logEvent("Moving folder " & theFolder & " to trash...") of me
move theFolder to trash
end if
end repeat
if theSelection is not equal to "folder" then
repeat with theFile in theFileList
set theFileName to name of theFile
if theFileName is not in theObjects as string then
logEvent("Moving file " & theFile & " to trash...") of me
move theFile to trash
end if
end repeat
end if
end tell
logEvent("Cleaning completed...") of me
end cleanup
on logEvent(logMessage)
set theLine to quoted form of (((current date) as string) ¬
& " : " & logMessage)
do shell script "echo " & theLine & ¬
" >> ~/Library/Logs/AppleScript" & theScriptName_G & ".log"
end logEvent
on DB_lookupProjectPath(puuid)
set SqlStatement to "
select replace(rtrim(ZLIBRARYRELATIVEPATH,'.approject'),'/',':' )
from ZRKFOLDER
where
ZUUID ='" & puuid & "'"
set SqlRecords to DB_execute(SqlStatement)
return DB_record(SqlRecords, 1, 1)
end DB_lookupProjectPath
on processFolders(theFoldersList, theFolderPath, processOrder)
logEvent("processFolders... : " & theFolderPath) of me
set arrayOfFolders to {}
tell application "Aperture"
set theCount to count of theFoldersList
set theCounter to 1
repeat with theFolder in theFoldersList
set foldersOfFolder to {}
set theFolderName to name of theFolder
logEvent("Processing folder : " & theFolderName & " (" & theCounter & "/" & theCount & ")") of me
set theCounter to theCounter + 1
set end of arrayOfFolders to theFolderName
tell application "Finder"
if not (exists (POSIX file (theFolderPath & theFolderName) of me)) then
logEvent("creating new folder " & theFolderName & " at " & theFolderPath) of me
make new folder at (POSIX file theFolderPath of me) with properties {name:theFolderName}
end if
end tell
logEvent("Getting list of album...") of me
set theAlbumsListOfFolder to every album of folder id (id of theFolder)
logEvent("Found " & (count of theAlbumsListOfFolder) & " albums") of me
logEvent("Getting list of folder...") of me
set theFolderListOfFolder to every folder of folder id (id of theFolder)
logEvent("Found " & (count of theFolderListOfFolder) & " folders") of me
logEvent("Getting list of project...") of me
set theProjectsListOfFolder to every project of folder id (id of theFolder)
logEvent("Found " & (count of theProjectsListOfFolder) & " projects") of me
if theProjectsListOfFolder is not equal to {} then
set end of foldersOfFolder to processProjects(theProjectsListOfFolder, (theFolderPath & theFolderName & "/"), processOrder) of me as list
end if
if theFolderListOfFolder is equal to {} then
set end of foldersOfFolder to processAlbums(theAlbumsListOfFolder, (theFolderPath & theFolderName & "/"), processOrder) of me as list
else
if theAlbumsListOfFolder is not equal to {} then
set end of foldersOfFolder to processAlbums(theAlbumsListOfFolder, (theFolderPath & theFolderName & "/"), processOrder) of me as list
end if
set end of foldersOfFolder to processFolders(theFolderListOfFolder, (theFolderPath & theFolderName & ":"), processOrder) of me as list
end if
cleanup(foldersOfFolder, (theFolderPath & theFolderName & "/"), "all") of me
end repeat
end tell
logEvent("processFolders completed...") of me
return arrayOfFolders
end processFolders
on processFoldersTree(theParent, theFoldersList)
logEvent("processFoldersTree...") of me
tell application "Aperture"
repeat with theFolder in theFoldersList
if theParent is not 0 then
set end of theFoldersTree_G to (id of theFolder)
end if
set theFolderListOfFolder to every folder of folder id (id of theFolder)
if theFolderListOfFolder is not equal to {} then
processFoldersTree((id of theFolder), theFolderListOfFolder) of me
end if
end repeat
end tell
logEvent("processFoldersTree completed...") of me
end processFoldersTree
on processAlbumsTree(theProjectsList, theFoldersList)
logEvent("processAlbumsTree...") of me
set theAllAlbums_G to {}
tell application "Aperture"
repeat with theProject in theProjectsList
repeat with theAlbum in (every album of project id (id of theProject))
set end of theAllAlbums_G to (id of theAlbum)
end repeat
end repeat
repeat with theProject in theProjectsList
repeat with theAlbum in (every album of every subfolder of project id (id of theProject))
set end of theAllAlbums_G to (id of theAlbum)
end repeat
end repeat
repeat with theFolder in theFoldersList
repeat with theAlbum in (every album of folder id (id of theFolder))
set end of theAllAlbums_G to (id of theAlbum)
end repeat
end repeat
end tell
logEvent("processAlbumsTree completed...") of me
end processAlbumsTree
on DB_lookupImageInfo(puuid)
set SqlStatement to "
SELECT replace(A.ZLIBRARYRELATIVEPATH,'.approject',''),strftime('%m/%d/%Y %H:%M:%S',datetime(B.ZDATELASTSAVEDINDATABASE, 'unixepoch', '+31 years','localtime'))
from ZRKFOLDER AS A,ZRKVERSION AS B
where
B.ZPROJECTUUID = A.ZUUID AND
B.ZUUID ='" & puuid & "'"
set SqlRecords to DB_execute(SqlStatement)
return {theImagePath:DB_record(SqlRecords, 1, 1), theImageDate:DB_record(SqlRecords, 1, 2)}
end DB_lookupImageInfo
on processProjects(theProjectsList, theProjectPath, processOrder)
logEvent("processProjects... : " & theProjectPath) of me
logEvent("processOrder: " & processOrder) of me
set arrayOfProjects to {}
tell application "Aperture"
set theCount to count of theProjectsList
set theCounter to 1
repeat with theProject in theProjectsList
set ProjectFolders to {}
set theProjectName to name of theProject
set end of arrayOfProjects to theProjectName
set theContinue to 0
if "ALL PROJECTS" is not in theSelectedProjects_G as string then
if (id of theProject) is not in theSelectedProjects_G as string then
logEvent("Skipping project: " & theProjectName) of me
set theContinue to 1
end if
end if
if theContinue = 0 then
-- set theProjectPath to theProjectPath & DB_lookupProjectPath(id of theProject) of me
logEvent("Processing project : " & theProjectName & " (" & theCounter & "/" & theCount & ")") of me
tell application "Finder"
if not (exists (POSIX file (theProjectPath & theProjectName) of me)) then
logEvent("creating new folder " & theProjectName & " at " & theProjectPath) of me
make new folder at (POSIX file theProjectPath of me) with properties {name:theProjectName}
end if
end tell
if processOrder is equal to "projects" then
set end of theProcessedProjects_G to (id of theProject)
logEvent("Getting list of images...") of me
set theImageList to every image version of project id (id of theProject) as list
logEvent("Found " & (count of theImageList) & " images") of me
set end of ProjectFolders to processImages(theImageList, (theProjectPath & theProjectName & "/"), "project", "JPEG - Original Size") of me as list
end if
logEvent("Getting list of subfolders...") of me
set theSubfolderList to every subfolder of project id (id of theProject)
logEvent("Found " & (count of theSubfolderList) & " subfolders") of me
logEvent("Getting list of album...") of me
set theAlbumList to every album of project id (id of theProject)
logEvent("Found " & (count of theAlbumList) & " albums") of me
if theSubfolderList is equal to {} then
set end of ProjectFolders to processAlbums(theAlbumList, (theProjectPath & theProjectName & "/"), processOrder) of me as list
else
if theAlbumList is not equal to {} then
set end of ProjectFolders to processAlbums(theAlbumList, (theProjectPath & theProjectName & "/"), processOrder) of me as list
end if
set end of ProjectFolders to processSubfolders(theSubfolderList, (theProjectPath & theProjectName & "/"), processOrder) of me as list
end if
if processOrder is equal to "projects" then
cleanup(ProjectFolders, (theProjectPath & theProjectName & "/"), "all") of me
else
cleanup(ProjectFolders, (theProjectPath & theProjectName & "/"), "folder") of me
end if
end if
set theCounter to theCounter + 1
end repeat
end tell
logEvent("processProjects completed...") of me
return arrayOfProjects
end processProjects
on exportImage(imageUUID, imageName, exportFolder, imageType, isAlbum, exportSettings, imageExt)
set imageInfo to DB_lookupImageInfo(imageUUID) of me
set imageTime to theImageDate of imageInfo as Unicode text
set imageDate to date imageTime
set isExported to 0
set imageName to imageName & imageExt
set theFile to POSIX file (exportFolder & imageName)
tell application "Finder"
set isUpdate to 0
if not (exists theFile) then
logEvent("Image does not exist in folder : " & exportFolder) of me
set isUpdate to 1
else
logEvent("Get image modification date") of me
do shell script "ls -l " & quoted form of (exportFolder & imageName)
set imageFileDate to modification date of (info for theFile)
if imageDate ≥ imageFileDate then
logEvent("Image file date: " & imageFileDate as string) of me
set isUpdate to 1
end if
end if
if isUpdate = 1 then
if exists theFile then
move theFile to the trash
end if
if isAlbum is equal to "album" then
logEvent("Creating a link for image: " & imageName) of me
set theProjectFolder to theImagePath of imageInfo
do shell script "ln " & quoted form of (theLibraryPath_G & theProjectFolder & "/" & imageName) & " " & quoted form of exportFolder
else
set isExported to 1
logEvent("Exporting image: " & imageName) of me
tell application "Aperture"
if imageType is "master" then
set settings to exportSettings
export {image version id imageUUID} using settings to POSIX path of file exportFolder metadata embedded
else
set settings to exportSettings
export {image version id imageUUID} using settings to POSIX path of file exportFolder metadata embedded
end if
end tell
end if
end if
end tell
return isExported
end exportImage
on DB_execute(SqlStatement)
try
set SqlScript to Sqlite_G & space & "-separator '|'" & space & (quoted form of ApertureLibrary_G) & space & (quoted form of SqlStatement) & " 2>&1"
set SqlResult to do shell script SqlScript
set theARray to {}
set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to ASCII character 13
set SqlRecords to text items of SqlResult
set AppleScript's text item delimiters to tid
return SqlRecords
on error s number i partial result p from f to t
set s to "SQL Error: " & s
logEvent(quoted form of (s)) of me
end try
end DB_execute
on DB_record(SqlRecords, row, col)
try
set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to "|"
set SqlCols to text items of (item row of SqlRecords)
set AppleScript's text item delimiters to tid
return item col of SqlCols
on error
return {}
end try
end DB_record
on DB_lookupRecord(SqlRecords, theReturnCol, theText, theCol)
set theResult to ""
repeat with theRow in items of SqlRecords
set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to "|"
set theFields to text items of theRow
set AppleScript's text item delimiters to tid
if item theCol of theFields is equal to theText then
set theResult to item theReturnCol of theFields
exit repeat
end if
end repeat
return theResult
end DB_lookupRecord
on processImages(theImageList, exportFolder, isAlbum, exportSettings)
logEvent("processImages... : " & exportFolder) of me
if exportSettings contains "JPEG" then
set imageExt to ".jpg"
else
set imageExt to ".ANY"
end if
set arrayOfImages to {}
with timeout of 6000 seconds
set theCount to count of theImageList
set theCounter to 1
repeat with theImage in theImageList
set imageUUID to id of theImage
set imageName to name of theImage
set end of arrayOfImages to imageName & imageExt
logEvent("Processing image : " & imageName & " (" & theCounter & "/" & theCount & ")") of me
set numExports_G to numExports_G + (exportImage(imageUUID, imageName, exportFolder, "version", isAlbum, exportSettings, imageExt) of me)
set theCounter to theCounter + 1
end repeat
end timeout
return arrayOfImages
end processImages
on processAlbums(theAlbumsList, theAlbumPath, processOrder)
logEvent("processAlbums... : " & theAlbumPath) of me
set arrayOfAlbums to {}
tell application "Aperture"
set theCount to count of theAlbumsList
set theCounter to 1
repeat with theAlbum in theAlbumsList
set theAlbumName to name of theAlbum
logEvent("Processing album : " & theAlbumName & " (" & theCounter & "/" & theCount & ")") of me
set theCounter to theCounter + 1
set AlbumObjects to {}
set end of arrayOfAlbums to theAlbumName
tell application "Finder"
if not (exists (POSIX file (theAlbumPath & theAlbumName) of me)) then
logEvent("creating new folder " & theAlbumName & " at " & theAlbumPath) of me
make new folder at (POSIX file theAlbumPath of me) with properties {name:theAlbumName}
end if
end tell
logEvent("Getting list of images...") of me
set theImagesList to every image version of album id (id of theAlbum)
logEvent("Found " & (count of theImagesList) & " images") of me
if processOrder is equal to "albums" then
set end of AlbumObjects to processImages(theImagesList, (theAlbumPath & theAlbumName & "/"), "album", "JPEG - Original Size") of me as list
cleanup(AlbumObjects, (theAlbumPath & theAlbumName & "/"), "all") of me
end if
end repeat
end tell
logEvent("processAlbums completed...") of me
return arrayOfAlbums
end processAlbums
on processSubfolders(theSubfoldersList, theSubfolderPath, processOrder)
logEvent("processSubfolders... : " & theSubfolderPath) of me
set arrayOfSubfolders to {}
tell application "Aperture"
set theCount to count of theSubfoldersList
set theCounter to 1
repeat with theSubfolder in theSubfoldersList
set theSubfolderName to name of theSubfolder
logEvent("Processing subfolder : " & theSubfolderName & " (" & theCounter & "/" & theCount & ")") of me
set theCounter to theCounter + 1
set end of arrayOfSubfolders to theSubfolderName
tell application "Finder"
if not (exists (POSIX file (theSubfolderPath & theSubfolderName) of me)) then
logEvent("creating new folder " & theSubfolderName & " at " & theSubfolderPath) of me
make new folder at (POSIX file theSubfolderPath of me) with properties {name:theSubfolderName}
end if
end tell
set SubfoldersFolders to {}
logEvent("Getting list of albums ...") of me
set theAlbumsListOfSubfolder to every album of subfolder id (id of theSubfolder)
logEvent("Found " & (count of theAlbumsListOfSubfolder) & " albums") of me
logEvent("Getting list of subfolders...") of me
set theSubfoldersListOfSubfolder to every subfolder of subfolder id (id of theSubfolder)
logEvent("Found " & (count of theSubfoldersListOfSubfolder) & " subfolders") of me
if theSubfoldersListOfSubfolder is equal to {} then
set end of SubfoldersFolders to processAlbums(theAlbumsListOfSubfolder, (theSubfolderPath & theSubfolderName & "/"), processOrder) of me as list
else
if theAlbumsListOfSubfolder is not equal to {} then
set end of SubfoldersFolders to processAlbums(theAlbumsListOfSubfolder, (theSubfolderPath & theSubfolderName & "/"), processOrder) of me as list
end if
set end of SubfoldersFolders to processSubfolders(theSubfoldersListOfSubfolder, (theSubfolderPath & theSubfolderName & "/"), processOrder) of me as list
end if
cleanup(SubfoldersFolders, (theSubfolderPath & theSubfolderName & "/"), "all") of me
end repeat
end tell
logEvent("processSubfolders completed...") of me
return arrayOfSubfolders
end processSubfoldersIf you do externalize your Masters to folders anywhere (same drive, internal/external drive, multiple drives, whatever), never be tempted to use Finder to mess with them.
As Frank said, use Relocate Masters. Otherwise you'll confuse Aperture when it wakes up expecting Masters to be in certain places when they have moved elsewhere.
It's possible to fix up the mess, but it's no fun! -
How to Connect to my Aperture Library, which is on a Different Hard Drive?
In FCP X, the only option I get when I click on the still camera icon is iPhoto, which I don't use.
In order to avoid conflicts between FCS and FCP X, I have installed them on different start up drives. My Aperture software and library are on the start up drive containing FCS, as they always have been. The FCP X drive is the new start up drive.
When I start up on the FXP X drive, how do I gain access to my aperture library which is on the other drive? If I can't gain access, how to I add a copy of the library and software to the new FCP X start up drive?
Thanks for any help.Hi Ashley
iPhoto will have created duplicates and hidden your originals. You need to find your masters from the iPhoto Library - Right-Click and select “Show Package Contents”
Older versions of iPhoto uses an Originals folder and in later versions; Masters. It’s not a good idea to go messing with the structure as it could corrupt the iPhoto Library. Apple has made this structure for good reason; so that you can always use the revert command to go back to an original, even if you have edited in iPhoto using cropping or red eye removal, for example.
However, if as you indicate you have no further use for iPhoto, you could consider moving your originals/masters to a new folder structure (iPhoto automatically creates dated sub-folders) and then importing to Lightroom.
The link below gives further information:
http://osxdaily.com/2011/08/30/where-iphoto-pictures-are-located/ -
I have a problem I cannot figure out. I have 155,000 photos in 1120 projects in A3 (ver 3.2.4). My photo files are referenced on external hard drives, and the Aperture library folder resides on my imac hard drive in the pictures folder.
I started to remove previews in the Aperture library to make space because my 500GB internal hard drive is almost full. When I got into the Aperture folder I found this:
My preview folder is 39GB for 488,000 items and my thumbnail folder is 173GB for just 4504 items. What is happening here?
I don't understand 488,000 previews, and how can I have 173GB of thumbnails for only 4504 items?First off going into the library like that to remove anything is a bad idea. You should be using the Aperture command delete previews. In addition you need to turn off previews not just in the Preferences but also in the projects or else Aperture will juts regenerate them.
As for the sizes issue. The Aperture library is a database, even though you can open it up and see some regular files and folders the entire package acts as a database. Taking the size of different pieces of ti is usually not vert helpful.
Each image can have multiple thumbnails as you will see if you look in the folder. In addition in order to speed ip operation there are two actual database files in the Thumbnails folder in which Aperture caches recently used thumbs (at least as near as can be figured out trying to reverse engineer it).
As for the item count remember each of the folders contain more then just a collection of image files. Every preview is stored in its own subfolder.
Again you should not be managing the Aperture library as if it was a regular folder of images or data. If your short of space on the library drive you can delete the previewss from within Aperture and set Aperture up to not regen them and also not to create new ones. Remember this will have some negative consequences especially with referenced originals.
regards -
Is it possible to work from my Aperture Library if it's on an external HD?
Additionally, is it possible to remove the images from the Aperture Library and then re-import them leaving them in place?
Thanks
JeffI have a problem with importing of a project, of a library from the one too an other computer library. It looks that the size of the library matters with a G5 2.0ghz, 10.4). Is it that it has too do with RAM and/or processor speed?
With smaller sized projects it lloks that it hasn't a problem with import the libary. But it has problems with generating thumbnails ( G5 2.0ghz, 10.4). Aperture starts to generate the thubnails, but freezes and (re)scipping and (re)showing the thumbnails. And aperture stops with to generate while it's not finished and restarts after a restart. Why has aperture to redo generating thumbnails?
Apending to the problem:
Is it possible to go endless in size with the aperture library virtueel.Or goes it together with a fast computer?
Can you update a library from smaal to 1/2 sixe jpegs? -
I lost my entire Aperture library, how can i restore it?
I wanted to import an old project from a previous Aperture but it asked me to update to Aperture 3 when i wanted to import that project.
But i'm already running 3.3.1 never the less i did an update to 3.3.2 but it didn't solve my problem, and gave me the same message.
Eventually restarted my laptop and tried to import the project into Aperture again.
This time the screen comes up that normally shows when you hold the option+command key and asks if i want to update the library since it asked me to do that last time i accepted but now my whole library is gone and replaced with the one old project!
And i can't find my old projects anywhere and the size of my library is only 88GB now (it used to be 200GB)
Now i never deleted any pictures or removed my library so i should be able to recover it somehow right?
iv'e been browing the web but havn't found a solution to revert what iv'e done.
Also looked at recovery of deleted files with MacKeeper but there were no files in there that were previously in my library
so doesn't look like it got thrown in the trash.
If anyone has any suggestions please help me regain my old library,
i'm not importing any new photo's or changing anything right now as i'm affraid i'll never get it back.
i do have some projects backed up but not all of them.Eventually found a answer after browsing bunch of other threads
"To find a Library go to File/Switch to Library and navigate to the appropriate Library. If that does not solve your issue please provide detailed description of your problematic workflow." -
Change Imported Files from Store in Current Location to Aperture Library
Aperture Newbie
I have chosen to import my files by using the Store Files: drop down selection "In the Aperture Library". That is what I prefer.
However, I accidentally imported a large selection fo files and chose the Pictures folder instead of the In the Aperture Library selection. Is there a way to change it without removing the pictures and re-importing. I've done a lot of edits on the pictures in this project and would rather not start over.He's the Lion's meow (or is that roar?).
Maybe you are looking for
-
Verizon tech support for FIOS - how to get around the attitude.
Most are helpful, but some are rather disdainful of macs or linux, or act surprised if you have more than one computer. A: Well, if I only had one computer, why would I need a router? Linux does not need any special support, and in fact runs quite be
-
Hi. Please help. My install disk appears to be hanging on the grey Apple screen at start-up. I've not yet installed Leopard. I just want to eject the disk. How do I get it out of the computer. I'm thinking I got a bad disk. Thanks. Dan
-
After I updated my mac with OS X maverick my parallel stoped
after I updated my mac with OS X maverick my parallel stoped so that i can not open the windos 8 that I have on my mac so what is the selution
-
Printing problem with ServiceUI.printDialog
Hi, We use the IcePDF component from IceSoft to render and print our pdf files. In most of the cases, we configure the page settings in the code before we send the document to the printer, but there is one case that we need to let the user choose the
-
Identifying dbid from an rman autobackup piece
Hello, I understand that to identify the dbid from a an autobackup piece :'\WINDOWS\SYSTEM32\C-2156049726-20070107-00' ...Its simply the format C-dbid-timestamp-seq# Can anyone identify the dbid from my own autobackup piece '/oradata02/FMPR/autobacku