• 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: problems saving pdf
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems saving pdf


  • Subject: Re: problems saving pdf
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 09 Apr 2015 11:51:36 +1000

On 9 Apr 2015, at 11:08 am, Stockly, Ed <email@hidden> wrote:

made a few tweaks…

Let's make another one:

set myName to ((characters 1 thru -5 of myName) as string)

Making a list and then coercing to a string is a bad idea, because as well as being unnecessary work, the result depends on the value of text item delimiters -- and that makes it fragile. Far better to use:

set myName to text 1 thru -5 of myName


-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: problems saving pdf
      • From: Shane Stanley <email@hidden>
References: 
 >problems saving pdf (From: RJay Hansen <email@hidden>)
 >Re: problems saving pdf (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: problems saving pdf
  • Next by Date: Re: problems saving pdf
  • Previous by thread: Re: problems saving pdf
  • Next by thread: Re: problems saving pdf
  • Index(es):
    • Date
    • Thread