Re: Flawed ?
Re: Flawed ?
- Subject: Re: Flawed ?
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 03 Feb 2004 07:36:48 -0800
1. You can't tell window 1 to save window 1. (And there's no particular
reason I can see to tell window 1 to set thePath either, although that
shouldn't cause an error.)
2. You actually can save the window just like saving the document. And
saving to a string path works, if it's really a valid location. The
dictionary says it should be a <<class furl>>, but AppleScript will coerce
a string path to this class without even specifying 'as class <<furl>>'.
But your path is an existing folder's path ending "Documents:"- you need to
give it the path of FILE you want to create inside that folder. not the
folder (a common mistake).
set thePath to "IBM 01:Users:Parents:Documents:SD Downloads:New Doc"
tell application "Tex-Edit Plus"
save window 1 in thePath
end tell
--
Paul Berkowitz
>
From: Bernard Azancot <email@hidden>
>
Date: Tue, 3 Feb 2004 14:22:49 +0100
>
To: AppleScript <email@hidden>
>
Subject: Flawed ?
>
>
This is a very basic question (apologies):
>
>
My script is very simple but I get the following error message every
>
time I launch it:
>
" The script is flawed or AS is installed improperly".
>
>
No problem with other scripts... So, it rather looks like a "flawed
>
script".
>
>
I have simplified the script to try to find out what the problem is,
>
but I always get the same boring message.
>
>
In case of bad install, how can I re-install AS ?
>
>
1st simplified script
>
-- --
>
tell application "Tex-Edit Plus"
>
tell window 1
>
set thePath to "IBM 01: Users:Parents:Documents:SD Downloads:"
>
save window 1 in thePath
>
>
end tell
>
end tell
>
-- --
>
>
2nd simplified script
>
--
>
tell application "Tex-Edit Plus"
>
set thePath to "IBM 01:Users:Parents:Documents:SD Downloads:"
>
save window 1 in thePath
>
end tell
>
-- --
>
>
Thanks foy your help.
>
BA
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >Flawed ? (From: Bernard Azancot <email@hidden>) |