• 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: Problem saving a new file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem saving a new file


  • Subject: Re: Problem saving a new file
  • From: Nigel Garvey <email@hidden>
  • Date: Sun, 21 Oct 2012 20:47:45 +0100

Axel Luttgens wrote on Sun, 21 Oct 2012 12:47:56 +0100:

>Looks like application sandboxing enters into the game with the above.
>Just put the path to call outside of the tell block, and the "regular"
>Documents folder is available again:
>
>	set newFile to (((path to documents folder) & "Test_File.rtf") as
text) as
>«class furl»

Hi.

If you'll excuse my butting in with an observation: concatenating a text
to an alias produces a list and coercing a list to text is influenced by
the current value of AppleScript's text item delimiters. A more
efficient and delimiter-proof phrasing of the above is:

  set newFile to ((path to documents folder as text) & "Test_File.rtf") as «class furl»

'as text' is here a parameter of 'path to', not a coercion.


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


  • Follow-Ups:
    • Re: Problem saving a new file
      • From: Axel Luttgens <email@hidden>
    • Re: Problem saving a new file
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: Problem saving a new file
  • Next by Date: Re: Problem saving a new file
  • Previous by thread: Re: Problem saving a new file
  • Next by thread: Re: Problem saving a new file
  • Index(es):
    • Date
    • Thread