• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can anyone explain this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can anyone explain this?


  • Subject: Re: Can anyone explain this?
  • From: Jay <email@hidden>
  • Date: Fri, 27 Dec 2002 15:03:28 -0600

Hi Michelle,

I'm not sure why it's doing that (it did the same on my machine too).
I added 'as string' to the end of it and it seemed to work.

-------------------------------
set foo to (choose file)
tell application "Finder" to set foo_name to (foo's name) as string
foo_name's text items
-------------------------------
--> {"t", "e", "s", "t", ".", "p", "d", "f"}



Jay


On Friday, December 27, 2002, at 02:50 PM, Michelle Steiner wrote:

> set foo to (choose file)
> tell application "Finder" to set foo_name to name of foo
> --> "Advance and Retreat"
>
> text items of foo_name
> --> {"", "", "d", "v", "a", "n", "c", "e", " ", "a", "n", "d", " ",
> "R", "e", "t", "r", "e", "a", "t"}
>
> The first text item is replaced by two null characters.
>
> But
> set foo_name to "Advance and Retreat"
> text items of foo_name
> --> {"A", "d", "v", "a", "n", "c", "e", " ", "a", "n", "d", " ", "R",
> "e", "t", "r", "e", "a", "t"}
>
> --Michelle
>
> "There's good in the world, Mr. Frodo, that's worth fighting for."
> _______________________________________________
> 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.

  • Follow-Ups:
    • Re: Can anyone explain this?
      • From: Michelle Steiner <email@hidden>
References: 
 >Can anyone explain this? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: reversing file names
  • Next by Date: Re: Can anyone explain this?
  • Previous by thread: Can anyone explain this?
  • Next by thread: Re: Can anyone explain this?
  • Index(es):
    • Date
    • Thread