🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #1951

Javascript: Move string to array

#1951
From: k8jz
Date: Wed, 30 Jun 2004 02:28
16 lines
1152 bytes
I am trying to build a script that will prompt me for a unique value to be added to the documents "keywords" property. This property is an array and I am getting the string through the "prompt" function.

Basically, I want to do the following:

inKeywords[0] = prompt("Enter keyword");
      docRef.info.keywords = inKeywords[0];

I get a runtime error 1229 when it tries to execute the second line.

Us old COBOL programmers aren't making the leap to OO constructs very smoothly <grin>.

Any help would be greatly appreciated!

Regards,

-Mike
Technical Details
Message-ID: <3bb4d6ef.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,25f7553d7416f4d,start
X-Google-Attributes: gidf5839,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: k8jz@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.photoshop.scripting
Subject: Javascript: Move string to array
Message-ID: <3bb4d6ef.-1@webx.la2eafNXanI>
Date: Tue, 29 Jun 2004 19:28:35 -0700
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit