• 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
text 1 thru the result
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

text 1 thru the result


  • Subject: text 1 thru the result
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 06 Dec 2010 08:54:50 -0600

I encountered a problem with this yesterday.
Here's an example script ...

property testString : "abcdefghijklmnopqrstuvwxyz"

-- test 1
set n to (-10 as integer)
text 1 thru n of testString --> "abcdefghijklmnopq" correct

-- test 2
(10 as integer)
text 1 thru -(the result) of testString --> "abcdefghijklmnopq" also correct

-- test 3
(-10 as integer)
text 1 thru (the result) of testString --> error: Can't get 1 "abcdefghijklmnopqrstuvwxyz" thru -10 of text.

It seems that if 
(the result)
 is used , then the minus sign must explicitly appear in the code.
This seems odd. Perhaps there is a bug here?

 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: text 1 thru the result
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Finder error problem?
  • Next by Date: Re: Sorting a list of aliases
  • Previous by thread: Re: Sorting a list of aliases
  • Next by thread: Re: text 1 thru the result
  • Index(es):
    • Date
    • Thread