Hello
Not the first time - and certainly not the last one - where AppleScript return an error message which doesn't match what is really failing.
For the name extension, I had a doubt when I saw in your original question.
set tempTwo to a reference to file (my dailyServerFolder & ":" & temp as text)
with temp defined by
set temp to name of window 1
I was not sure because if the window was displaying an already saved document it would have the extension but it it was a never saved one it wouldn't.
Happily, Shane asked you for the real error message and when I saw it the answer was here : never saved before window.
Yvan KOENIG running Yosemite 10.10.5 in French (VALLAURIS, France) jeudi 24 septembre 2015 15:13:25
PS. As you answered at the beginning of the message, I politely apply the same scheme but I feel it boring because it's prone to messages in which the extraneous "Do not post admin requests…" lines are reproduced ad nauseam. Here I carefully removed the two copies available in your message ;-)
Le 2015/09/24 à 12:34, Brian Christmas < email@hidden> a écrit :
G’day Yvan
You are spot on. As well as a missing folder in the path name, which I reported earlier, I also added the .rtfd, and all’s fine. I just neglected to add that fact earlier.
It’s interesting though, that with the missing folder in the path, the script was trying to save to the wrong folder, but reported the error as not having correct permissions. That error message led me astray for a while.
Regards
Santa
On 24 Sep 2015, at 8:00 pm, Yvan KOENIG < email@hidden> wrote: My two cents.
The reported error message said : The document "2015-09-24 003154 Cover Sheet.rtfd" could not be exported as "2015-09-24 015737"
Wouldn't it better if the target name was completed with the name extension ?
Yvan KOENIG running Yosemite 10.10.5 in French (VALLAURIS, France) jeudi 24 septembre 2015 11:58:23
|