What I've got will run to the first 'asecho ' command and not reach the second.
What I'd like to do is create a backup of any file being edited on my local host even if it is a remote document. I'm quite sure that the fault is in my script and not in BBEdit. I searched the archives here and found nothing related to this problem. Anyone smarter about AppleScript (and almost everyone here would fit that statement) care to point out the error of my ways? Thanks David -- text document doc *on* documentDidSave(doc) -- do shell script "~/asecho 1 running" *set* fromFTP *to* doc *is* FTP -- do shell script "~/asecho 2 post fromFTP" *if* fromFTP *then* -- set path to URL of doc *set* _ftpinfo *to* FTPInfo *of* doc *set* _path *to* path *of* _ftpinfo *set* _host *to* host *of* _ftpinfo *do shell script* "~/asecho 3 " & quoted form *of* _host *set* u *to* *URL* *of* doc *do shell script* "~/asecho 4 " & u *set* p *to* POSIX path *of* _path *do shell script* "~/UnixEnvironment/src/script/backuptext " & p *else* *set* f *to* *file* *of* doc *set* p *to* POSIX path *of* f *do shell script* "~/UnixEnvironment/src/script/backuptext " & p *end* *if* *end* documentDidSave -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "supp...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/0b46247e-73d9-4101-9ad7-b916b4f1fe49n%40googlegroups.com.