🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19791

Re: Converting PM 6.5 Script to ID 2.0

#19791
From: Vincent Macaluso
Date: Thu, 14 Nov 2002 23:07
42 lines
2665 bytes
Ok, this is what I have so far... I'd like to, at the end, let them "Browse" for a directory to save the file in. 

How would I do that? We never got to that :) 

This is on a new project, with one button. 

Dim myFName, myLName, myDegree, myFullName, myTitle, myDivision, mySchool, myDept, mySect, myPhone, myFax, myPager, myAddress, myCity, myState, myWeb, myEmail, Filename As String 

Private Sub Command1_Click() 
Rem Business card datafile generator 

myFName = InputBox("Enter a Name:", "Name", "Vincent") 
myLName = InputBox("Enter a Name:", "Name", "Macaluso") 
myDegree = InputBox("Enter a Name:", "Name", "MD") 
myFullName = myFName & " " & myLName & ", " & myDegree 

myTitle = InputBox("Enter a Title:", "Title", "Graphic Designer") 

myDivision = InputBox("Enter a Division:", "Division", "NEW ORLEANS") 
mySchool = InputBox("Enter a School or Hospital:", "School or Hospital", "School of") 
myDept = InputBox("Enter your Department:", "Department", "Department of") 
mySect = InputBox("Enter Section:", "Section", "Section of") 

myPhone = InputBox("Enter your Telephone Number:", "Phone", "(206) 555-1111") 
myFax = InputBox("Enter your Fax Number:", "Fax", "(206) 555-2222") 
myPager = InputBox("Enter your Pager Number:", "Pager", "(206) 555-3333") 

myAddress = InputBox("Enter a Street Address:", "Address", "1542 Tulane Avenue, Room 109-E") 
myCity = InputBox("Enter a City:", "City", "New Orleans") 
myState = InputBox("Enter a State:", "State", "LA") 

myWeb = InputBox("Enter a LSUHSC Web address:", "Web", "www.lsuhsc.edu") 
myEmail = InputBox("Enter a e-mail address:", "E-Mail", "@lsuhsc.edu") 

Filename = "c:\" & myLName & "-" & myFName & ".txt" 

test = InputBox("Blah", "blah blah", Filename) 

Open Filename For Output As #1 
Write #1, myFullName, myTitle, myDivision, mySchool, myDept, mySect, myPhone, myFax, myPager, myAddress, myCity, myState, myWeb, myEmail 
Close #1 
End Sub
Technical Details
Message-ID: <1de68c0a.20@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de68c0a.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,ee4c9e7edd2bcb69
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-14 19:16:06 PST
From: "Vincent Macaluso" <nolageek@yahoo.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Converting PM 6.5 Script to ID 2.0
Message-ID: <1de68c0a.20@WebX.la2eafNXanI>
Date: Thu, 14 Nov 2002 15:07:46 -0800
References: <1de68c0a.-1@WebX.la2eafNXanI>
Lines: 52
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit