So What the heck is AdobeLibrary2.jsx?
So far I've written a bit about what's in AdobeLibrary1.jsx and AdobeLibrary3.jsx. Now it's AdobeLibrary2.jsx's turn.
Bridge provides one method for persistently storing script settings. app.preferences is how it's done. But what if you want to store a bunch of stuff, and you don't want it destroyed when the user purges their preferences?
For example, the import from camera script stores standard import locations and renaming templates. You don't want your user to lose those things if the trash their Bridge preferences.
The answer is ScriptStore - AdobeLibrary2.jsx
ScriptStore is an XML storage facility. It's primitive in that there is very little searching capability, you have to know what you put in there. But it's also robust and fast.
The actual data is stored in a folder in the user data area
Win: c:\documents and settings\[user]\application data\adobe\ScriptStore
Mac: [user]\library\application support\adobe\ScriptStore
There are plenty of examples in Import from Camera on how to use it.
But the basics are (and most of this is in the top commented section of the library itself):
MyScript = {};
MyScript.store = ScriptStore.open( "$$$AStoragePalceForMyScript" );
ScriptStore.open - will launch ScriptStore, and open a "store" with the given name. The name can not contain spaces, and must be unique from all other store names. So use something goofy. If the store does not exist, it returns a new, empty store.
To put simple data into the store:
store.put( type, name, value );
Where type is a string - just a name - allows you to store more than one property of the same name, but delineating a "type" or category of data.
name is the name to store it under
value is the value
store.put( "metadata", "Fred", "Flinstone" );
This creates an xml structure like:
Flintstone
Doing it again:
store.put( "metadata", "Barney", "Rubble" );
yields:
Flintstone
Rubble
Attempting to overwrite does exactly that.
store.put( "metadata", "Barney", "Fife" );
yields:
Flintstone
Fife
To get stored data:
store.get( "metadata", "Barney" );
returns "Fife"
You can also put Arrays into storage:
var ar = ["Fred","Barney","Wilma","Betty"]
store.putArray( "metadata", "FlintstoneAdults", ar );
and get arrays
store.getArray( "metadata", "FlintstoneAdults" );
In AdobeLibrary1, we created an object definition, Hashtable - which I find uniquely useful.
You can:
var ht = new Hashtable();
ht.put( "Fred", "Flintsone" );
ht.put( "Barny", "Rubble" );
ht.put( "Wilma", "Flintstone" );
ht.put( "Betty", "Rubble" );
store.putCollection( "metadata", "FlintFolk", ht );
and
var ht = store.getCollection( "metadata", "FlintFolk" );
And if these put and get methods aren't enough for you, you can create your own data structure and traverse it yourself.
store.root is the root XmlNode of the store.
So to make your own structure, use XmlNode.addNode( name, value );
myNode = store.root.addNode( "myNode" );
myDataNode = myNode.addNode( "Fred", "Flintstone" );
this creates an XML structure:
Flintstone
Once you have stored this sturcture with: store.save();
You find it this way:
var MyNode = store.root.findNode( "myNode" );
var Fred = myNode.findNode( "Fred" ).getValue();
You can find a node among multiple nodes:
store.findNode( name, count );
where count is an integer. Count = 0, it finds the first instance of a node with "name". Count = 1, it finds the second.
Or you can just get them all:
store.findNodes( name ); which returns a array of nodes
I hope you all find this as useful as I do.
Bob
Adobe Workflow Scripting
I've got some code that I would like to have run portably between CS and CS2.
I'd like to use your XML stuff in AdobeLibrary2.jsx because:
1) I don't have to write it
2) It comes bundled with CS2
3) It's "free", sorta.
My problem is that it does not come bundled with CS which mean I would have to
include AdobeLibrary2.jsx with my script or strip out the XML stuff and include
it in my package.
I don't have a problem with the mechanics of this process. What is not clear,
howver, is what the legal ramifications are of giving AdobeLibrary2.jsx to
someone who has not yet purchased a copy of a CS2 product. I'm not a lawyer so
asking me to read the licensing agreements is an effort in futility. It's real
easy for a layman like myself to misinterpret legalese.
What I would like is clarification from someone at Adobe as to what the
re-distribution policy is for AdobeLibrary2.jsx. I can go download a number of
different Free XML JS implementations, but I'd rather use your stuff.
thanks for the help.
ciao,
-X
Similar Messages
-
I am trying to pay my bill online. However, when I click the "submit" key, it tells me my "nickname" is incorrect. What the heck is a nickname? I have never had this trouble before.
Had the same problem. Here's how I sorted it out, not including yelling at my PC or ranting in my own thread (that's optional): First you want to delete your saved payment option. If you try this and it does not delete, log out and back in. It should be gone. Now re-enter your payment option (credit card number or whatever you are using) and if it asks if you want to save the data for future use, make sure you give it a nickname that doesn't include any special characters. Hope this works for you!
-
I synced (updated) my iphone to itunes and some songs were deleted from my iphone playlist on my phone. On the computer, a circle is next to the song and the title faded out. What the heck is that all about and how do I get my songs back onto my phone playlist? Never happened before. My software is up to date?
http://support.apple.com/kb/HT2519
-
I am transfering songs from one computer to another using home share. Both machines are authorized in home sharing. The songs import from (my) windows computer to the other (my wifes) authorized MacBook Pro, computer just fine. Once the songs are in the library and i try to sync her Iphone (4s) to her computer the songs ar greyed out and i can't play them nor see them under iPhone after sync is complete. What the heck is going on? BTW, the songs that i have imported are either songs i burned from a CD or songs i have purchased from the iTunes store, so they should sync no problem!? Help please.
screen print of issue...
-
What the heck is going on with my Virtual Memory??!!
I'm not really sure why but when I check activity monitor and see my VM it says i'm using anywhere from 230-270 gigs of virtual memory. This is literally fresh out of restart when it says this much and never changes. I go through and check every process I see runing and create a quick estimate of the virtual memory being used, and it's definitely not over 10 gigs if even 5; honestly I think it's listing between 1-2.
What the heck could be causing this? Verified HD and came up clean. Should I be concerned? I'm not gonna lie this macbook isn't running the best it used to be. Watching videos, whether mp4, mkv, youtube, is pretty laggy. I'm aways sure to close all other processes to to try and maximize video performance, not that it helps much. I'm considering a fresh install and recovery via timemachine.I excluded the list of fonts from step 4 as I'm a graphic design major and have well over a thousand...and I didn't want you to burn up your scroll wheel or rub the tips of your fingers off with the amount of scrolling you'd have to do had I included them .
Command 1:
com.displaylink.driver.DisplayLinkDriver (1.7)
com.rogueamoeba.HermesAudio (3.0.1)
com.Cycling74.driver.Soundflower (1.5.1)
com.bresink.driver.BRESINKx86Monitoring (7.0)
com.logmein.hamachi (1.0)
foo.tun (1.0)
foo.tap (1.0)
Command 2:
com.autodesk.backburner_server
com.autodesk.backburner_manager
net.openvpn.client
com.vmware.launchd.vmware
com.themha.airlock.daemon
com.rogueamoeba.hermes
com.logmein.hamachi
com.google.keystone.daemon
com.displaylink.usbnivolistener
com.bombich.ccc
com.autodesk.wiretapgateway
com.autodesk.sw_start
com.autodesk.sw_server
com.autodesk.sw_probed
com.autodesk.sw_dbd
com.autodesk.sw_bwmgr
com.autodesk.dl_mpd
com.autodesk.backburner_start
com.autodesk.adlm
com.adobe.versioncueCS4
Command 3:
com.wacom.pentablet
com.lexmark.hostregister
com.lexmark.hostinfoupdater
com.lexmark.hbnlistener
com.google.keystone.root.agent
com.displaylink.useragent
com.adobe.CS4ServiceManager
com.google.GoogleContactSyncAgent
com.adobe.ARM.930da3ce175de4e82bd3cdf1dd8571f74bd3b6a7236bc94bfc00f6e9
com.adobe.AAM.Scheduler-1.0
Command 4:
/Library/Components:
XiphQT.component
/Library/Extensions:
ham.kext
/Library/Frameworks:
.DS_Store
AECore.framework
AEProfiling.framework
AERegistration.framework
Adlm.framework
Adobe AIR.framework
AudioMixEngine.framework
Cairo.framework
Compressor.framework
DSPPublishing.framework
DivX Toolkit.framework
EWSMac-GC.framework
EWSMac.framework
Frameworks
FxPlug.framework
GLib.framework
Gtk.framework
HPDeviceModel.framework
HPPml.framework
HPServicesInterface.framework
HPSmartPrint.framework
Jackmp.framework
Jackservermp.framework
MacFUSE.framework
MediaServerAPI.framework
Mesh3DS.framework
Mono.framework
NyxAudioAnalysis.framework
OpenVPN.framework
Panda.framework
PluginManager.framework
ProMetadataSupport.framework
Python.framework
Qmaster.framework
TSLicense.framework
WacomMultiTouch.framework
XSKey.framework
libZJBIG.dylib
libxml.framework
/Library/Input Methods:
/Library/InputManagers:
Safari AdBlock
/Library/Internet Plug-Ins:
AdobePDFViewer.plugin
CANONiMAGEGATEWAYDL.plugin
CANONiMAGEGATEWAYLI.plugin
CouponPrinter-FireFox.plugin
CouponPrinter-Safari.webplugin
DivXBrowserPlugin.plugin
Flash Player.plugin
Flip4Mac WMV Plugin.plugin
Flip4Mac WMV Plugin.webplugin
Google Earth Web Plug-in.plugin
JavaAppletPlugin.plugin
Quartz Composer.webplugin
QuickTime Plugin.plugin
Silverlight.plugin
Unity Web Player.plugin
Unused
WacomNetscape.plugin
WeatherScope.plugin
flashplayer.xpt
googletalkbrowserplugin.plugin
iPhotoPhotocast.plugin
npdivx.xpt
npgtpo3dautoplugin.plugin
nsIQTScriptablePlugin.xpt
/Library/Keyboard Layouts:
/Library/LaunchAgents:
com.adobe.AAM.Updater-1.0.plist
com.adobe.CS4ServiceManager.plist
com.displaylink.useragent.plist
com.google.keystone.agent.plist
com.lexmark.hbnlistener.plist
com.lexmark.hostinfoupdater.plist
com.lexmark.hostregister.plist
com.wacom.pentablet.plist
/Library/LaunchDaemons:
com.adobe.versioncueCS4.plist
com.apple.aelwriter.plist
com.apple.qmaster.qmasterd.plist
com.apple.remotepairtool.plist
com.autodesk.adlm.plist
com.autodesk.backburner_manager.plist
com.autodesk.backburner_server.plist
com.autodesk.backburner_start.plist
com.autodesk.dl_mpd.plist
com.autodesk.sw_bwmgr.plist
com.autodesk.sw_dbd.plist
com.autodesk.sw_probed.plist
com.autodesk.sw_server.plist
com.autodesk.sw_start.plist
com.autodesk.wiretapgateway.plist
com.bombich.ccc.plist
com.displaylink.usbnivolistener.plist
com.google.keystone.daemon.plist
com.logmein.hamachi.plist
com.rogueamoeba.hermes.plist
com.themha.airlock.daemon.plist
com.vmware.launchd.vmware.plist
net.openvpn.client.plist
org.macports.Privoxy.plist
/Library/PreferencePanes:
DivX.prefPane
Fan Control.prefPane
Flip4Mac WMV.prefPane
MacFUSE.prefPane
PenTablet.prefPane
VersionCueCS4.prefPane
/Library/PrivilegedHelperTools:
com.bombich.ccc
/Library/Privoxy:
privoxy
/Library/QuickLook:
BrushViewQL.qlgenerator
GBQLGenerator.qlgenerator
LogicQLGenerator.qlgenerator
VMware Fusion QuickLook.qlgenerator
iWork.qlgenerator
/Library/QuickTime:
AppleHDVCodec.component
AppleIntermediateCodec.component
AppleMPEG2Codec.component
AppleProResCodec.component
CanonMJPEGAVI.component
CanonMJPEGAVIDec.component
CanonText.component
DVCPROHDCodec.component
DVCPROHDMuxer.component
DVCPROHDVideoDigitizer.component
DVCPROHDVideoOutput.component
DVCPROHDVideoOutputClock.component
DVCPROHDVideoOutputCodec.component
DesktopVideoOut.component
DivX Decoder.component
DivX Encoder.component
FCP Uncompressed 422.component
Flip4Mac WMV Advanced.component
Flip4Mac WMV Export.component
Flip4Mac WMV Import.component
Google Camera Adapter 0.component
Google Camera Adapter 1.component
IMXCodec.component
MayaIFF.component
/Library/ScriptingAdditions:
Adobe Unit Types.osax
/Library/Spotlight:
GBSpotlightImporter.mdimporter
LogicPro.mdimporter
Microsoft Office.mdimporter
iWork.mdimporter
/Library/StartupItems:
BRESINKx86Monitoring
CoreDuoTemp
FanControlDaemon
/etc/mach_init.d:
/etc/mach_init_per_login_session.d:
/etc/mach_init_per_user.d:
Library/Address Book Plug-Ins:
SkypeABDialer.bundle
SkypeABSMS.bundle
Library/Fonts:
alot...
Library/Frameworks:
Library/Input Methods:
.localized
Library/Internet Plug-Ins:
Move_Media_Player.plugin
doubleTwistWebPlugin.bundle
fbplugin_1_0_1.plugin
fbplugin_1_0_3.plugin
Library/Keyboard Layouts:
Library/LaunchAgents:
com.adobe.AAM.Updater-1.0.plist
com.adobe.ARM.930da3ce175de4e82bd3cdf1dd8571f74bd3b6a7236bc94bfc00f6e9.plist
com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.8F30A2BB-9699-4472-B47A-69D 7FA822C70.plist
[email protected]
com.apple.FolderActions.enabled.plist
com.apple.FolderActions.folders.plist
com.google.GoogleContactSyncAgent.plist
Library/PreferencePanes:
.c4dsetup
.c4dsetupCINEMA 4DF51A2E69
Airlock.prefPane
Connect360.prefPane
Perian.prefPane
Library/QuickTime:
AC3MovieImport.component
Perian.component
Command 5:
Connect360Helper, DockSpaces, MiniUsage, OpenVPN Connect, Bowtie, SpacieHelper, Rowmote Helper, Dropbox, BambooCore -
My computer recognizes my old iPhone, iPad and iPod but NOT my new iPhone what the heck? It was fine last week, now nothing
When you plug in your phone go to the sidebar on the left, select the device, and select the menu you want to sync.
For example at the top there is summary, info, apps, movies, etc.
If you wanted to sync movies go under there and pick and chose the movies you want on the device.
Let's assume you are doing that and syncing is not going properly. Then first double check that there is a checkmark in the top left of that page that says sync movies
If there is uncheck and then hit apply. Then it will take all the movies off. Now re-check everything and hit apply. -
I just downloaded the latest update for iTunes this morning, and now I am getting a message saying that iTunes can't start because MSVCR80.dll is missing from my computer. What the heck happened?
Troubleshooting issues with iTunes for Windows updates - MSVCR80
-
What the heck is iTunes uploading?
After a frustrating week trying to use iTunes match, I've finally gotten a good chunk of my library in the cloud. The problem is the remaining 10 gigs: all live DJ sets that are roughly 2 hours long. They hover around 180 mb each, so under the limit.
Problem is, I cannot get these to upload at all. I got lucky with one, and another matched, but the rest have been a boondoggle. I've tried many things, and as an experiment I decided to remove all of them from my library, add JUST ONE back into my iTunes, and then keep Activity Monitor open to see what exactly is happening.
And this is what I get: I added back in a file that is 189 mb large. I started the transfer about two hours ago. With Activity Monitor open and set to the Netowrk tab, I originally had "Data sent: 18.38 gb". I verified that I didn't have any thing else really doing any uploads (every once and a while I'd see "Data sent/sec" spike to 1k/second or so, so I figured it was probably just Mail checking my inbox). Now it's two hours later, Data sent/sec has ranged from 40k/sec to 90k/sec (darn ADSL's slow upload speeds). But here's the kicker, I see "Data sent: 18.69 gb"
Now, correct me if I'm wrong, but a 189 mb file added to 18.38 gb should equal around 18.58 gb. Which means that iTunes has magically uploaded an additional 100 mb or so of data. Even considering the fact that, since this is an mp3, it'd get re-encoded into an AAC, I find it very unlikely that we're talking about a 50% decrease in compression efficiency, and keep in mind that the upload STILL ISN'T FINISHED. In fact, as I write this, it's now at 18.73 gb data sent and no sign of stopping.
Does anyone know what exactly is happening here? This mirrors my experiences with my first few attempts at uploading these sets: 10 gigs at once, but 6 gigs of uploading later, not a single one had finished. WHAT THE HECK IS ITUNES MATCH DOING??? I'm seriously considering canceling and seeing if I can get my money back, since I mainly cared about being able to stream these sets onto my iPad.Uh just to update, at around 18.77 gb data sent, data has stopped being uploaded from iTunes. Except it's still not done "uploading" the one song. So now I guess it's officially hung. WHAT'S HAPPENING???
-
I upgraded from CS5 to CS6 for my IMac. I downloaded CS6 and out in my serial number and it worked fine for a number of weeks. Suddenly when I went to use it it said it was a trial version. I had to register it to use my CS6 I registered it and it worked, but only as a Trial Version of CS6 Extended. I do not want CS6 Extended. I deleted the trial version of CS6 Extended from my hard drive and once again downloaded my upgrade of CS6 and put in my serial number and it worked fine for a couple of weeks. Today, once again, it tells me it is a trial version and will not load unless I register the trial version. What the heck is going on? This is crazy. I simply want to use CS6, for which I paid. Help!
Frank BraultThanks!
Date: Sun, 30 Dec 2012 12:49:52 -0700
From: [email protected]
To: [email protected]
Subject: CS6 has been converted from the upgrade I bought to a trial version. What the heck is going on.
Re: CS6 has been converted from the upgrade I bought to a trial version. What the heck is going on.
created by Dragoro21 in Photoshop for Beginners - View the full discussion
Its a bug that came with the latest update. The developers know about it and will fix it as soon as they get back from christmas vacation. Lots of us (inluding some of the developers) are suffering the same problem.
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4957602#4957602
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4957602#4957602
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4957602#4957602. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Photoshop for Beginners by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
About a week ago, I had no problem clicking on pictures to open them to bigger size.....As of about 4 days ago - If I try to open a picture on Facebook, it shows the comments but no picture..I don't know what is going on!!! It works fine on Safari, but I would much rather use Mozilla for my own selfish reasons, WHAT THE HECK IS GOING ON????? ( I'VE TRIED EVERYTHING!!!!!)
== This happened ==
Every time Firefox opened
== About a week ago.....I agree the phones are supposed to come with the battery and battery door missing that is policy of every wireless company. The problem is that the rep that you spoke with wasn't being as thorough as they could have been to ensure that you got complete equipment, is was a processing error from the first representative. Most of the information for exchanging a phone is auto completed by the computers as well so when the rep processes the exchange they don't have any say so as to what is actually in the shipping box so being that you didn't activate the droid 3 on your account when you called in about the missing battery and complained the computer only recognized the droid x because that probably what you had activated on your account, so that's why the second replacement was droid x equipment and not droid 3
-
My ipad mini says 6.1.3 is up to date, what the heck
it says 6.1.3 is up to date what the heck
I had the iOS 7 update available for my iPhone 5 at ~10:45 am Pacific time. I did not update then and checked just now again on my iPhone (over the air update) and the update available to me has been backdated from iOS 7 to iOS 6.1.4 (note that I'm still running iOS 6.1.0). Wait and try again later. It's clear that Apple is limiting the devices that are getting the update because of the overwhelming demand placed on both the download and activation servers.
-
When I'm previewing my iDVD, the pictures are all of the edited ones - which is what I want - but after I burn the DVD, all the pictures are in the unedited form!! What the heck?!! How do I fix this problem? I've never experienced this before!!
Hi
Try in iDVD
• Save as a DiskImage
• Play this by use of DVD-player tool
Still OK or problems ?
If OK - Burn it by use of
• Apple Disk Util tool - or -
• Roxio Toast™ (if You got this - I love it)
Yours Bengt W -
I'm trying to import a new cd, but when I load it in, iTunes shuffles the track order. What the heck?!
If you have music that was purchased on different iTunes accounts than the one you use, then you must provide the password, otherwise the tunes are not considered yours. You can turn off iCloud and just use the usual USB sync method. But I wonder whether you'll have the same problem?
-
signed into hbo now. almost immediately received error saying my subscription expired but it was only 30 minutes old. tried to resubscribe but it did not recognize my email address. what the heck????
i just called hbo now. they are on system overload. apparently no one can sign in. she recommended i try to sign in during the middle of the night to see if it works. they "hope" to have the problems resolved in short order. she said not to sign up for a new subscription because you will be charged for 2 subscriptions.
-
Quicktime X... What the Heck!!!!
Quicktime X. Give me my old QT back. I have pro, but none of the features show up in QT X (10).
There isn't even a prefs option to see if it is registered. Also, I can't install QT 7.6.4 because of X.
What the Heck!!!! This version is so dumbed down, it blows!!!!!Wyodor wrote:
You could have found it with Spotlight.
New kid on the block?
No, Not at all. Did think I should have to even look for another Quicktime. It's just that after 20 years of post production, this is not the Apple way of doing things.
I just find it incredibly odd that after so many years of putting this App in the Apps folder, that they would replace it with an inferior version, that has dummy presets and shiny buttons and move the "legendary" full featured app to the utilities folder.
I guess I have finally entered into the new "old school". Those of you who have fine tuned your encodes for optimal performance know what I'm talking about for sure.
Thanks for the posts folks.
Maybe you are looking for
-
Modify Record Number in a Random Access File
Hi Does anyone know if I can modify the record number in the random access file hardware.dat for each hardware record each time and update it in hardware.dat to display it? Also why does it say "Record does not exist" if I modify the record number fo
-
FTP multiple files (unknown file names) using utl_tcp
Hi, I would like to 1. connect to a server 2. Change directory 3. ftp all the files available I'm only capable of ftp known files, i.e. if I know the file names. Is there any way of doing an mget or similar? I undertand that prior to that I would nee
-
Ibook- G4 Questions. Apple Virgin
I recently acquired an ibook G4 from a friend and am using it as a secondary computer when I am not home. I don't really know much about apple and could really use some help. I was wondering if the OS can be updated above the current 10.4.11 I am cur
-
UPDATE Database (using Schema) based on current START_DATE_TIME
Hi, I am using the TestStand Schema and a MYSQL datababse. I have added a new table the MYSQL database that comes with TestStand. I am using the database tools to insert some local variable results into this table. I also add the start date and time
-
Workflow for converting SonyHD Cam footage via KonaLHe to DVCPro HD?
Hi, I've got a project starting tomorrow and the producer had to switch cameras the day before the shoot! They are now brining in Sony HDCam 1080psf 23.98 (don't know the camera). I've rented an HD Cam deck with SDI out (no FW). I have the Kona LHe s