Is it possible to export full PCD object list along with their PCD ID?
Hi
Is it possible to export full PCD object list along with their PCD ID to an excel sheet or txt file?
Any help will be appreciated.
Regards
Vineet
Hi,
I have provided a simple method below to Get all the PCD objects PCD ID.
1. Create a transport package.
2. Add all the PCD objects for which ever you need the PCD ID.
3. Now release the Transport package as the "File system" mode.
4. Once it is done successfully, it will display all the transported object and its corresponding PCD ID in a table format.
You can simply copy and paste it in a excel to get the PCD ID for the PCD objects.
Hope this is helpful.
Thanks,
Mahendran B.
Similar Messages
-
Is it possible to export simply the marker list in Logic Pro 8 ?
Is it possible to export simply the marker list from a project in Logic Pro 8 ? I want to present just a marker/cue list for a homework assignment. Thanks for your help.
After populating the DDList you can set a value for that list. Note that if the user did not want to choose a value for that list it will still be set to your default value and that default value will be in your submitted data (this may not be the behaviour that you want).
Paul -
PCD Audit : What information about the PCD objects are stored in the PCD?
Folks,
Need some information on the information stored in the PCD for audit purposes.
Object = Any PCD object, typically iView, Page, Workset, Role, Group...
1. Creation of any object - Should definately be present in the PCD
2. Any modification including history - List of all actions on any PCD object - I am sure the last modification is tracked, but can we track every change to the object from creation?
3. Deletion of any object? - This I am not sure of - Does the PCD store information about deleted object's like deletion time stamp and the user who deleted etc?
Thank you...Hi,
>>1. Creation of any object - Should definately be present in the PCD
There is no doubt about this.
>>2. Any modification including history - List of all actions on any PCD object - I am sure the last modification is tracked, but can we track every change to the object from creation?
<b>AND</b>
>>3. Deletion of any object? - This I am not sure of - Does the PCD store information about deleted object's like deletion time stamp and the user who deleted etc?
There is no versioning concept in PCD right now, but ofcourse planned for future.
So you cannot track the history and deleted objects, but there exists PCD Repository Manager in KM on which you can activate versioning. Check if this suites your needs. Never tried but logically ever PCD change should get versioned here.
http://help.sap.com/saphelp_nw70/helpdata/en/76/a8934259a5cc6ae10000000a155106/frameset.htm
Greetings,
Praveen Gudapati -
Is it possible to export Vector Smart Objects as vector SVG files from Photoshop CC 2014?
I have Vector Smart Objects copied from Illustrator and pasted into Photoshop. I would like to export them as vector SVG files (using Generator or Extract Assets). I can add the .svg extension to the layer and actually export an SVG just fine. The problem is any SVG I have exported have all been raster images. It defeats the purpose of having that as an option as far as I'm concerned.
I remember watching and listening to keynotes and other speakers at Adobe MAX 2014 who said it was so powerful and amazing to create SVG files from Photoshop. If we're still exporting raster SVG files from Photoshop...that's not very impressive or exciting--especially since this era of modern web development benefits greatly from using vector SVG files.
I understand that Shape Layers can be exported as vector SVG files but that seems very limiting. I also realize that users can create some impressive vectors in Photoshop, but that is not optimal. Illustrator is a better tool for creating vectors and I normally use Photoshop and Illustrator side-by-side. I know that vector SVG files can be exported from Illustrator but that isn't as user friendly and convenient as utilizing Photoshop > Generator > Reflow.
My idea was to create my assets in Illustrator, paste them into Photoshop as Vector Smart Objects, set up my layout, and then use the Generator/Reflow method or Extract Assets to get a new web design started.
Maybe I misunderstood what the speakers at Adobe MAX had said. Perhaps it's just user error and I'm just missing something simple (it happens).
Photoshop CC 2014 notes the following under Help > System Info:
Adobe Photoshop Version: 2014.2.2 20141204.r.310 2014/12/04:23:59:59 CL 994532 x64
Operating System: Windows 8.1 64-bit
Any help or suggestions would be greatly appreciated! Thank you in advance for your time.Not quite the same, but have a look at the new Libraries feature that came with 2014.2.2 I just tried it, and dragging a vector object into a library I created in Photoshop, was there in Illustrator. This happens without having to close and reopen Illustrator. Just use the drop down at the top of the Libraries panel (in Illustrator) to find your custom, or job specific library.
-
Is it possible to export/import schedule+objects separately from the background?
Hi all,
I work on a tutorial for software that is being developped. the functionalities are definitely ok but the design is being modified.
I would like to prepare the tutorial with the temporary design and definitive schedule and objects (buttons, texts...), and as a final step modify the design only. Is it possible?
Thanks in advance for reply.Hello,
One tip: you can have as many master slides as you want, and even apply a master slide to a group. So in your case you could have the background for the normal calculator and for the scientific calculator on two different master slides. But all need to have the same resolution (width/height in pixel) if you want them in the same file.
But: you can duplicate slides, only every object will have a new ID on the duplicate.
Perhaps I understand wrong. If you have two files: copy the first file to a file with another name and change the master slide. Are you starting with images, not with a capture? Then even easier: import the images to the Library. Copy them to all the slides?
The Filmstrip itself is not very interactive, you cannot do a lot in it. But a duplicate file should have exactly the same branchings.
Wondering if you use advanced actions? Can you confirm that?
FYI: once I blogged about the simulation of a keypad:
Create a keypad simulation
BTW: you can print the branching panel, did you ever consider that? It has a lot more information than the simple Filmstrip
Lilybiri -
Is it possible to export a 3d object to 2d layers?
I have a part of the brain which is a 3d object. I need to split it up in to 2d layers at a set orientation, so i can mesure the area of a cross section.
You could technically accomplish setting the orientation and measure it using the Camera tool in the 3D panel. But to answere your direct question you should duplicate the 3D object you want to convert, position it and then select Rasterize layer. I hope that helps you.
-
I have downloaded a trial version of Aperture because I would like to switch from using Picasa and gimp to using Aperture. I already know that I want to use Aperture, and that I cannot learn how in 30 days. I want to use the 30 days to see if I can solve a different problem: bulk export of all information except edits and versions from Aperture.
I want to avoid locking information (other than than the edits and version information that Aperture maintains) about my photos into any one piece of software.
Picasa stores a copy of almost all its information in text filies (mostly XML or .ini format) that are scattered through its picture library. These files can be scanned and found by use of Mac OS X tools that are availabe in Terminal (at the bash command line). All of the information about albums, faces, etc can be exported by a single command (after wtiting the progams that the command will initiate. I have not yest found any similar files in Aperture.
Aperture supports the export of EXIF and IPTC metadata, but only for selected photos, and does not appear to support the export of other information at all.
What I would like to do with a single operation, from either Aperture or Terminal, is to export the entire arrangement of phost ins albums and projects, lists of albums, projects and phots with all metadata (including added keywords) attached to each, and for referenced photos, the external file name. I do not care if would be in one file or many different text files, because Mac OS X provides all the tools I would need to extract the information I would want from any number of text files.
This would allow me to reconstruct all of the information about my photos (except for edits and versions) outside Aperture, and to use that info in a database outside Aperture. I would then be able to use Aperture while still being able to do everything that I could do with Picasa.
The most helpful form of an answer to this question might be a list of places to look in the Apple support and Apple developer documentation. It is difficult to teach me anything complicated, but I am fairly good at figuring out things from documentation.The following script recursively lists the content of an Aperture library. The output is simple, for demonstration puposes, but could be modified to XML. If the XML were that of a PLIST, the Apple Property List viewer oculd be used to diaplsy the output.
A simlar script produces all of the keywords and tags for all of the images in Aperture.
The scripts run much faster in the shell than in the AppleScript Editor bcause the shwll produces no debugging or monitoring information.
#!/usr/bin/env osascript
(* Demo: list the containment hierarchy in Aperture, starting from libraries.
Runs from AppleScript Editor, or as a shell command
References:
Aperture 3 AppleScript Reference Manual,
particularly the Containment Diagram in Appendix A
from the link on "Aperture Resources" web page at http://images.apple.com/aperture/resources/
Aperture AppleScript Dictionary, accessed from AppleScript Editor
Ian E. Gorman
global outputFile
set outputFilePath to "/Users/ian/prj/sw/AppleScript/ApertureContainment.txt"
global lineEnd
set lineEnd to "
global tabChar
set tabChar to " "
on writeText(str)
write str to outputFile
end writeText
# Open the file, guarantee closure after any error, and list the contents of Aperture libraries
try
set outputFile to open for access POSIX file outputFilePath with write permission
set eof outputFile to 0 # truncate the file, if it already exists
my listAll()
close access outputFile
on error errorMsg number errNum from offendingObj partial result resutList to expectedType
try
display alert "Operation failed, attempting to close output file" & lineEnd & "Error number " & errNum & ": " & errorMsg
close access outputFile
display alert "Operation failed, but output file has been closed"
on error
display alert "Operation failed, also failed to close output file"
end try
end try
# top-level in Aperture
on listAll()
tell application "Aperture"
repeat with eachLibrary in libraries
my listLibrary(0, eachLibrary)
end repeat
end tell
end listAll
on listLibrary(level, thisLibrary)
local newLevel
set newLevel to 1 + (level as integer)
tell application "Aperture"
my writeText((newLevel as rich text) & tabChar & "library" & tabChar & (name of thisLibrary) & lineEnd)
repeat with eachAlbum in albums of thisLibrary
my listAlbum(newLevel, eachAlbum)
end repeat
repeat with eachFolder in folders of thisLibrary
my listFolder(newLevel, eachFolder)
end repeat
repeat with eachProject in projects of thisLibrary
my listProject(newLevel, eachProject)
end repeat
repeat with eachImageVersion in image versions of thisLibrary
my listImageVersion(newLevel, eachImageVersion)
end repeat
end tell
end listLibrary
on listAlbum(level, thisAlbum)
local newLevel
set newLevel to 1 + (level as integer)
tell application "Aperture"
my writeText((newLevel as rich text) & tabChar & "album" & tabChar & (name of thisAlbum) & lineEnd)
repeat with eachImageVersion in image versions of thisAlbum
my listImageVersion(newLevel, eachImageVersion)
end repeat
end tell
end listAlbum
on listFolder(level, thisFolder)
local newLevel
set newLevel to 1 + (level as integer)
tell application "Aperture"
my writeText((newLevel as rich text) & tabChar & "folder" & tabChar & (name of thisFolder) & lineEnd)
repeat with eachAlbum in albums of thisFolder
my listAlbum(newLevel, eachAlbum)
end repeat
repeat with eachFolder in folders of thisFolder
my listFolder(newLevel, eachFolder)
end repeat
repeat with eachProject in projects of thisFolder
my listProject(newLevel, eachProject)
end repeat
repeat with eachImageVersion in image versions of thisFolder
my listImageVersion(newLevel, eachImageVersion)
end repeat
end tell
end listFolder
on listProject(level, thisProject)
local newLevel
set newLevel to 1 + (level as integer)
tell application "Aperture"
my writeText((newLevel as rich text) & tabChar & "project" & tabChar & (name of thisProject) & lineEnd)
repeat with eachAlbum in albums of thisProject
my listAlbum(newLevel, eachAlbum)
end repeat
repeat with eachSubfolder in subfolders of thisProject
my listSubfolder(newLevel, eachSubfolder)
end repeat
repeat with eachImageVersion in image versions of thisProject
my listImageVersion(newLevel, eachImageVersion)
end repeat
end tell
end listProject
on listSubfolder(level, thisSubfolder)
local newLevel
set newLevel to 1 + (level as integer)
tell application "Aperture"
my writeText((newLevel as rich text) & tabChar & "subfolder" & tabChar & (name of thisSubfolder) & lineEnd)
repeat with eachAlbum in albums of thisSubfolder
my listAlbum(newLevel, eachAlbum)
end repeat
repeat with eachSubfolder in subfolders of thisSubfolder
my listSubfolder(newLevel, eachSubfolder)
end repeat
repeat with eachImageVersion in image versions of thisSubfolder
my listImageVersion(newLevel, eachImageVersion)
end repeat
end tell
end listSubfolder
on listImageVersion(level, thisImageVersion)
local newLevel
set newLevel to 1 + (level as integer)
tell application "Aperture"
my writeText((newLevel as rich text) & tabChar & "image version" & tabChar & (name of thisImageVersion) & lineEnd)
end tell
end listImageVersion -
Object living along with servlet/jsp container
How do I make an Object live until the servlet container lives? I mean I want an Object to be instantiated once in the lifetime of the webserver session and its has to be singleton and should live alive until the webserver dies? How can I make this possible? I should be able to keep that object alive even if any no references are made to the object. Moreover I should be able to access that object from any java class on that webserver?
if mean u want to keep the object live for
one user session
use session.setAttribute("name",object)
and if mean for the time btw start up and shutdown of the
server use application scope
alternatively
use session scope in bean or application scope as needed
like
<jsp:useBean id="db_in" scope="session" class="com.ww.ert.Bean_IN" />
or
<jsp:useBean id="db_in" scope="application" class="com.ww.ert.DatabaseBean_IN" />
Regards
manu -
One of our customers is moving from our application (which uses Advantage Database Server) to another application (which uses other database technology). They have asked us to help export their data, so that they can migrate it to another database system. So far, we have used the Advantage Data Architect (ARC32) "Export Table Structures as Code" functionality to generate SQL. We used the "Include existing data" option. The SQL contains the necessary code to recreate the tables and indexes. The customer's IT staff will alter the SQL statements as necessary for their new system.
However, there is an issue with the Primary Keys in these table. The resulting INSERT statements use AutoInc as the type for the Primary Key in each Table. These INSERT statements contains "DEFAULT" for the value of each of these AutoInc fields. The customer would like to output an integer value for each of these Primary Key values in order to maintain referential integrity in their new system.
So far, I have not found any feature of ARC32 that allows us to export the Primary Key values. We had been using an older version of ARC32, since our application does not use the latest version of ADS. I did download the latest version of ARC32 (11.10), but it does not appear to include any new functionality that would facilitate doing this sort of export.
Can somebody tell me if there is such a feature in ARC32?
Or, is there is another Advantage tool to facilitate what we are trying to accomplish?
If there are no Advantage tools to provide such functionality, what else would you suggest?George,
It sounds like the approach you are using is the correct one. This seems to be the cleanest solution to me especially since the customer is able to modify the generated SQL statements for their new system.
In order to preserve the AutoInc values I would recommend altering the table and changing the field datatype from AutoInc to Integer. Then export the table as code which will export the actual values. After the tables have been created on the new system they can change the field datatype back to an AutoInc type if necessary.
Regards,
Chris Franz -
Hi,
I have created reports on bi publisher 11.1.1.6.8. When i try to export the reports to CSV, i get the date format in '2012-10-02T00:00:00.000+0' where as i need only the format as 'YYYY-MM-DD'.
When i export to pdf or excel or html, the date is in correct format as required, but issue only happens with csv.
Kindly advice.
Regards,
ZuzarHere is a script that will copy the previous days events and save them to "C:\". The file name be yesterdays date ex "04-18-2010-Events.csv"
Const strComputer = "."
Dim objFSO, objWMIService, colEvents, objEvent, outFile
Dim dtmStartDate, dtmEndDate, DateToCheck, fileDate
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set dtmStartDate = CreateObject("WbemScripting.SWbemDateTime")
Set dtmEndDate = CreateObject("WbemScripting.SWbemDateTime")
'change the date form "/" to "-" so it can be used in the file name
fileDate = Replace(Date - 1,"/","-")
Set outFile = objFSO.CreateTextFile("C:\" & fileDate & "-Events.csv",True)
DateToCheck = Date - 1
dtmEndDate.SetVarDate Date, True
dtmStartDate.SetVarDate DateToCheck, True
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colEvents = objWMIService.ExecQuery _
("Select * from Win32_NTLogEvent Where TimeWritten >= '" _
& dtmStartDate & "' and TimeWritten < '" & dtmEndDate & "'")
For each objEvent in colEvents
outFile.WriteLine String(100,"-")
outFile.WriteLine "Category = " & objEvent.Category
outFile.WriteLine "ComputerName = " & objEvent.ComputerName
outFile.WriteLine "EventCode = " & objEvent.EventCode
outFile.WriteLine "Message = " & objEvent.Message
outFile.WriteLine "RecordNumber = " & objEvent.RecordNumber
outFile.WriteLine "SourceName = " & objEvent.SourceName
outFile.WriteLine "TimeWritten = " & objEvent.TimeWritten
outFile.WriteLine "Type = " & objEvent.Type
outFile.WriteLine "User = " & objEvent.User
outFile.WriteLine String(100,"-")
Next
outFile.Close
MsgBox "Finished!"
v/r LikeToCode....Mark the best replies as answers. -
Exporting full database...
Dear All,
While exporting full database objects of sys user are exported or not?
Please tell me in details.
Thanks In advance.
PSP.I agree all your point. But, what will you do when an object is dropped such as TABLE >when the DB is 5 T or more.
Would you do a PIT? would you?
I accept that we use this exp/imp as one way of data migration. It doesn't become it is a >migration tool not a backup tool.
Then why would ppl say it is a logical backup not as migration tool. ppl say we can use >this as one way for data migration.Then there's when your sounded backup plan comes in play.
We use to do a full exp every day from our small databases, and the retention policy is 14 days.
In the Biggest database a full exp is not possible due batch processing at night, so we take a home made incremental export for the big objects and the rest of tables.
In 10g i think you can set the flashback to 2 weeks and that's all we need. (ya its a lot of space but it depends on your policy and your database size).
I'm not against EXP/ IMP at all, but you cant rely on them other than getting back a table or a stored procedure from certain date.
what i've noticed is that lot of people use exp/imp in small databases and this is their main backup strategy, but when they start working with big databases this approach is just not enough.
This is why you have to work and review your corporate backup policy.
It doesn't matter if you are an excellent DBA, if you took 3 days (or more) to restore your database you are just not doing your work.
my 2c.
Edit:
May be i need to clarify something.
Physical backup is intended to fast restore your database from a crash.
Logical Backup is used to migrate data, even if its into the same database. -
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! -
Exporting EP 6 Objects to EP 7?
Hi all -
Our customer currently has 2 portals. One on SAP EP 6, the other one on SAP EP 7.0. Is it possible to export content from EP 6 and directly import into EP 7? Or is it required to do an upgrade from EP 6 to EP 7 first and then export the objects from the newly upgraded EP 7 to the other EP 7 Portal?
Thanks for your inputs,
BertYou can transport the portal objects (pcd content, system configurtion, KM content, par files etc..) from EP6 to EP 7 without any problem.
You will not face any problem during transport. you can directly transport to freshly installed EP 7.
Raghu -
Is it possible to export multiple sections of the art board as individual PNG's?
I have an art board full of GUI buttons and each button consists of an icon and a background sitting beneath it. the back ground is just a rectangle with some shading and made into a symbol repeated over and over again incase someone wants to change the color palette of the buttons in 1 go.
Is it possible to export every button (icon and background) as its own individual png? and have each png the size of the icon rather than the art board?
The equivalent of Photoshop's Generate>Image Asset.
***one key component i really need to know is if i can also have illustrator automatically create folders for these files to be exported or generated into***
in the same way that in Photoshop, if you name a layer "Folder1/Image1.png" it will export that layer automatically as a png name Image1 inside a folder name Folder1.
Thanks!Try export to css. I believe that is the equivalent. It will create individual png files.
-
Is it possible to transfer Full-HD videos (from a Full-HD camcorder) from iMovie 11 to compressor 4 and create there a AVCHD DVD which can be played in HD quality at a PS/3?
Yes.
In iMovie use SHARE/Export Movie.
http://help.apple.com/imovie/#mov3a9e5615
Choose 1920x1080 (or size of your choice.
Give it a name and location.
You can drag this file into Compressor.
In Compressor, use "Create BluRay Disk"
That should work fine.
There is another alternative, where you could skip the DVD and Compressor.
Just SHARE/EXPORT USING QUICKTIME
Choose Movie to MP4
In Options, choose h.264 as the Codec.
Choose a bit rate of 16000 or less.
Create the movie.
You can then put it on a USB thumb drive and play it on the PS3.
Maybe you are looking for
-
When I tried to re-install I-Tunes it returns with the following message "The system extension "/system/Library/Extensions/hpPlugInInit.kext" was installed improperly and cannot be used. Please try reinstalling it ot contact product's vendor for an u
-
mmy iMessage isnt working sending as text to one particular iPhone user. How do I chage this?
-
Internal hard drive stops working (OS 10.6)
Hi all, I was working on my 2009 MacBook Pro (MacBook Pro, 2.53 GHz Intel Core 2 Duo) with a number of windows open (Chrome, Word, Mail, Preview), but nothing really heavy. All of a sudden all the pages in Chrome went blank, Word documents would only
-
IMac DV/400 will not read CD's since I installed Panther
Hi, A customer's iMac DV/400 with 384 MB RAM was running OS 9.2.2. We decided to upgrade his OS to 10.3 (firmware was already up to date 4.19) After the first CD finished and it restarted and asked for disk 2, it would no longer read ANY CD's. In fac
-
I am in Blurb, trying to upload an album that I have prepared in Adobe ELements 10. To upload I need to navigate in my computer to whatever Adobe folder has the album, but I can't find any Adobe files that way. So I wanted to save the album to an e