more questions...
more questions...
- Subject: more questions...
- From: Rips Ethan J <email@hidden>
- Date: Fri, 26 Jul 2002 16:57:02 -0400
Hello, scripters-
Thank you very much, Arthur & has, for your suggestions! The snail continues
to trudge through the thicket of code, as it were (sorry about that)... ;-)
Here are the latest additions to my ongoing dilemma... ;-)
1. I declare global vars & properties, then assign values to the globals &
other vars. Some of the value assignments are derived from user inputs (date
code & file name):
set docPath to alias (choose folder with prompt "Select folder containing
current Fact Sheets:")
set dateCode to (text returned of (display dialog "Insert date code in mmyy
format:" default answer ""))
set codeSuffix to "PER-" & dateCode
set fileName to (text returned of (display dialog "Type in 3-digit item
code" default answer "000")) & codeSuffix
The lines above work fine, but I need to rewrite them so the values are
derived programmatically from existing strings (probably via TIDs). The
problem is that I really don't understand TIDs & index references in
strings.
How would one go about pulling a substring (i.e., an item code) from a
larger string (the entire file name)? Can it be done via TIDs or must it be
done by some other means? Unless I'm missing something, ASLG, & the Goodman
book are silent on this one (at least, I can't hear them)...
2. (I'm sure this one must be obvious, but I can't seem to figure it out.)
How does one save a Quark file programmatically? I've tried the following in
a Quark tell block:
close file tempPath saving yes --admittedly an act of desperation
after trying
save document 1 in alias (docPath & fileName)
Neither one worked at all. Could it have something to do with the fact that
I've been trying to save to the server (oh, that!) again?
I've been poring over the example in the Shirley Hopkins Quark scripting
book, but can't seem to figure out what I'm doing wrong...
Thank you all very much (again) for your help!
Ethan
PS-FWIW, I agree with Michael Sullivan & Michael Grant that Finder file refs
are unwieldy & preposterous. Possibly the brainchild of the Marquis de Sade
as well.... ;-)
*****************************************************************
DISCLAIMER: The information contained in this e-mail may be confidential
and is intended solely for the use of the named addressee. Access, copying
or re-use of the e-mail or any information contained therein by any other
person is not authorized. If you are not the intended recipient please
notify us immediately by returning the e-mail to the originator.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.