• 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
Tex-Edit Plus script (was: Flawed ?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: Floor & Ceiling (no walls yet)
  • Next by Date: Re: Flawed ?
  • Previous by thread: Re: Flawed ?
  • Next by thread: Re: Flawed ?
  • Index(es):
    • Date
    • Thread