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: Oz Springs <email@hidden>
- Date: Tue, 6 Jul 2004 20:33:18 +0100
Thanks very much for this. It took me awhile to figure out I had to put in the line "set your_text to name of document 1", and then the script worked.
You have saved me a lot of bother and time.
Kind regards
Oz
At 1:56 PM -0500 6/7/04, Adam K. Wuellner wrote:
>
On Jul 6, 2004, at 1:35 PM, Oz Springs 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
>
>
--> [first 11 characters of your_text]
>
_______________________________________________
>
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.
_______________________________________________
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.