Tex-Edit Plus script (was: Flawed ?)
Tex-Edit Plus script (was: Flawed ?)
- Subject: Tex-Edit Plus script (was: Flawed ?)
- From: Christopher Stone <email@hidden>
- Date: Tue, 3 Feb 2004 09:13:14 -0600
At 14:22 +0100 02/03/2004, Bernard Azancot wrought:
My script is very simple but I get the following error message every
time I launch it:
______________________________________________________________________
Hello Bernard,
You have to give it a path complete with a document name:
----------
set dtF to path to desktop folder as string
tell application "Tex-Edit Plus"
if front document exists then
tell front document
set savePath to dtF & its name
tell application "Finder" to set fFlag to exists of file savePath
if fFlag = false then
save in savePath
else
beep
display dialog "File exists!" with icon 0 giving up after 60
end if
end tell
end if
end tell
----------
Its a good idea to check for the file's existence prior to trying to
save, because Tex-Edit Plus will blithely overwrite a file with the same
name in that path.
Chris
_______________________________________________
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>) |