Re: Characters in a file name - some progress
Re: Characters in a file name - some progress
- Subject: Re: Characters in a file name - some progress
- From: "Adam K. Wuellner" <email@hidden>
- Date: Wed, 7 Jul 2004 09:27:13 -0500
On Jul 7, 2004, at 8:03 AM, Nigel Smith wrote:
On 6/7/04 19:56, "Adam K. Wuellner" <email@hidden>
wrote:
set the text of text frame id 1004 of document 1 to name of document
1
and there is the whole filename. However, I do want only the first 11
characters and I have no idea how to limit the text entry.
set AppleScript's text item delimiters to {""}
(text items 1 through 11 of your_text) as string
Perhaps better would be the "text m thru n" construct:
-- all one line
set the text of text frame id 1004 of document 1 to (text 1 thru
11 of
(name of document 1))
Indeed. I thought I was thinking too hard. "text m thru n" doesn't
care about text item delimiters, which is preferable.
Although I'd write it "m through n", because "thru", well.... :-)
-Adam
_______________________________________________
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.