🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18312

Re: AppleScripting File Info

#18312
From: Olav Kvern
Date: Sun, 06 Apr 2003 00:16
32 lines
1728 bytes
Manuel--

Just to add to Peter's response: the problem was that you were not that you used "preference" instead of "preferences", but that you were telling the application to set the metadata preferences when you needed to be telling the document to do so.

In your earlier examples, you did not address the line:



set title of metadata preferences to "Hello" 




to the document. Peter noted one way of doing it (adding "of myDocument" to make certain that the event got to the document). You could also use something like this:



tell application "InDesign 2.0.2"     
    set myDocument to make new document 
    tell myDocument 
        set title of metadata preferences to "Hello" 
    end tell 
end tell 




When you tell the application to set a preference, you're setting the preference for all new documents (it's what's called an "application default"); when you tell a document to set a preference, you're setting the preference for that document only.

Thanks,

Ole
Technical Details
Message-ID: <1de89cb4.2@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de89cb4.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,366d90f029c5e414
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-05 16:38:49 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: AppleScripting File Info
Message-ID: <1de89cb4.2@WebX.la2eafNXanI>
Date: Sat, 5 Apr 2003 16:16:09 -0800
References: <1de89cb4.-1@WebX.la2eafNXanI>
Lines: 32
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit