• 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: Have I posted this??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Have I posted this??


  • Subject: Re: Have I posted this??
  • From: Nigel Garvey <email@hidden>
  • Date: Tue, 26 Jun 2018 11:18:48 +0100

Hi Brian.

Hope your recovery's going well.

Brian Christmas wrote on Tue, 26 Jun 2018 19:17:41 +1000:

>… but am open to/appreciative of, tweaking suggestions.

I haven't tried running the script yet, but looking through the code,
there are several instances of text being unnecessarily _coerced_ to
text.

Also:

>if (words 1 through 2 of testParagraph as text) contains
"APFSContainer" then

The string whose contents are tested here is the first two words of
testParagraph joined by whatever the current TID setting is.

>(count of words of testParagraph)

'of' is technically wrong after 'count', but currently harmless.

>set tempName to characters 2 through -1 of tempName as text

This is a list of the characters coerced to text with the current TID
value inserted between them. Use 'text' to get a substring directly:

  set tempName to text 2 through -1 of tempName

Similarly: set tempName to text 1 through -2 of tempName


NG
 _______________________________________________
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

  • Prev by Date: Have I posted this??
  • Next by Date: Re: AppleScript with FileMaker
  • Previous by thread: Have I posted this??
  • Next by thread: Apple Event sandboxing in macOS Mojave lacks essential APIs
  • Index(es):
    • Date
    • Thread