Skip to main content
Participant
February 12, 2009
Question

Where do I start?

  • February 12, 2009
  • 1 reply
  • 1772 views
I am new to this scripting thing. I found some code here (adding filenames to keywords) but I cannot get it to work. I have pasted it into TextEdit and Text Wrangler saving as text files with .js and .jsx extensions but it hasn't worked. (Brige CS4 recognizes it being added but it doesn't show up in the right-click menu or anywhere else I can look.)
Is there a 'start here' topic/section/link?

Thanks.
This topic has been closed for replies.

1 reply

Participant
March 2, 2009
Did you find the ExtendScript Toolkit allready? It should be at the Adobe Utilities folder somewhere. You can find several 'getting started' with scripting in your adobe directory as well as at the adobe site. Look for JavaScript Tools Guide CS3.pdf (for information about using the ExtendScript toolkit); Adobe Intro to Scripting.pdf (general introduction to scripting); Bridge CS3 JavaScript Guide.pdf (about scripting in Bridge) and Bridge CS3 JavaScript Reference.pdf (the reference guide). There will be CS4 versions of these as well.
Known Participant
November 30, 2009

As someone also who is looking to extend Bridge, etc with javascript, this was helpful.

However, the latter two do not yield on my default installs of CS3, or 4. I will hunt for them on the web.

My Q is this: As an Applescripter, should I purchase the "Adobe Bridge Official JavaScript Reference" which covers CS2 to get me into the javascript mindset vis a vis Bridge?

I'm wanting to interact with Adobe Drive much like I do with the Mac Finder and automate moving pdfs created by team members into the specific job folders determined by parsing out the job number of the file with the matching job number of the project file in Adobe Drive.

I'm trying to grasp what I can do to Bridge and its limits by checking the forums here. Is there a posting I should pay special attention? thanx, sam

Participant
March 8, 2010

Adam, are you testing the example script in ExtendToolKit? The example script looks like Adobe Illustrator's objects to me. You need to set to target application in the top left of the toolkit window to the app in which you want to test the code. You can also add the target as part of your script code like so:

#target illustrator

var myDoc = app.documents.add()

var myLayer = myDoc.layers.add()

var myTextFrame = myLayer.textFrames.add()

myTextFrame.contents = 'Hello world!';

// End code

If the sample was unedited then its NOT very good at all as the string "Hello world!" should have been quoted with either double or single quotes. Putting the correct target as shown will have the toolkit automatically switch when you test run.

#target photoshop

var myDoc = app.documents.add()

// End code

#target indesign

var myDoc = app.documents.add()

// End code


Thanks man...thats exactly what I am talking about. If that step is necessary then they should notate it in the pdf. Something like that is so crucial and so defeating to someone who maybe just starting out.

cheers,