Re: Problem saving a new file
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