Problem saving stay-open applet
Problem saving stay-open applet
- Subject: Problem saving stay-open applet
- From: John Delacour <email@hidden>
- Date: Thu, 5 Sep 2002 23:18:16 +0100
This seems to be a new problem.
I have a stay-open droplet that I'm testing. Its window is open and
I am editing it to get the result I want. Obviously I can't edit it
while it's active, but equally obviously sometimes I forget that it's
active and try to save changes, getting an error.
In order to save the changes, I quit the droplet, but if I've once
made the mistake above, I can no longer save changes to the same file
because it is locked. I therefore have to save as something else and
trash the original.
I'm sure I've never had this problem in the past. Once I have quit
the applet, it has always been possible to continue editing and
saving the changes.
I append a sample script in case anyone wants to test it.
JD
10.2/1.8.3
on open filelist
set s to ""
repeat with f in filelist
set s to s & "\"" & POSIX path of f & "\"" & ","
end repeat
set s to "(" & text 1 through -2 of s & ")"
--display dialog "" default answer s
set pl to "perl -e '
@ARGV = " & s & ";
for (@ARGV) {
print;
print $/;
}'"
try
set x to do shell script pl
on error e
display dialog "" default answer e
return
end try
tell me to display dialog "" default answer x
activate
end open
_______________________________________________
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.