Re: Textstring as List behaviour (one more thing)
Re: Textstring as List behaviour (one more thing)
- Subject: Re: Textstring as List behaviour (one more thing)
- From: Takaaki Naganoya <email@hidden>
- Date: Sun, 26 Nov 2006 00:48:09 +0900
Just cast them.
<AppleScript>
on clicked theObject
set AppleScript's text item delimiters to {"," as Unicode text}
set theList to every text item of ("11250044.jpg,11250045.jpg,
11250046.jpg,11250047.jpg,11250048.jpg" as Unicode text)
set the text item delimiters to ""
log theList
end clicked
--> 2006-11-26 00:16:58.082 delimDemo[907] {"11250044.jpg",
"11250045.jpg", "11250046.jpg", "11250047.jpg", "11250048.jpg"}
</AppleScript>
--
Takaaki Naganoya
Piyomaru Software
http://piyo.piyocast.com
email@hidden
On 2006/11/25, at 20:50, Ronald Hofmann wrote:
All works fine in AppleScript editor.
When I use the same code in AppleScriptStudio however it fails.
This seems not to be my lucky day.
Again my error?
Ronald
---
Am 25.11.2006 um 10:05 schrieb Takaaki Naganoya:
set AppleScript's text item delimiters to {","}
set theList to every text item of "11250044.jpg,11250045.jpg,
11250046.jpg,11250047.jpg,11250048.jpg"
set the text item delimiters to ""
theList
--> {"11250044.jpg", "11250045.jpg", "11250046.jpg",
"11250047.jpg", "11250048.jpg"}
On 2006/11/25, at 17:08, Ronald Hofmann wrote:
set AppleScript's text item delimiters to {","}
set theList to words of "11250044.jpg,11250045.jpg,11250046.jpg,
11250047.jpg,11250048.jpg" as list
set the text item delimiters to ""
--
Takaaki Naganoya
Piyomaru Software
http://piyo.piyocast.com
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40jumbosoft.de
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
mark.nu
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden