At 12:02 pm +0900 21/11/02, Rick Davis wrote:
Just thought of a feature I badly want NW X to have. And I should think it would be pretty easy to implement.If you save this script as an _application_ from Script Editor, you will have a droplet what will create a text file using the data from any file(s) you drop on it and open the file(s) in Nisus.
That is the ability to open any file "as is," like a text editor. I don't mean convert it, or anything like that. Just pry it open and show what's there, sans formatting, etc. etc. Sometimes, for example, I want to open a Word file that way, but I've always had to resort to a text editor to do it. NW should have that ability.
You can drag this droplet to the Dock so that when you want to open a .doc or .pdf or whatever in Nisus, you can drag it over the item in the Dock and read the data in Nisus. If you want to use the droplet often, you can save it as a stay-open application. The files you read in Nisus will be in the system's temporary items folder, so you will need to save them as something else somewhere else if you edit them.
on open droppedFiles
set tmp to "" & (path to temporary items)
repeat with f in droppedFiles
set f to "" & f
set text item delimiters to {":"}
set fname to last text item of f
set text item delimiters to {""}
set fnisi to tmp & fname
open for access file f
open for access file fnisi with write permission
set s to read file f
set eof file fnisi to 0
write s to file fnisi
close access file f
close access file fnisi
tell application "Finder"
open file fnisi using application file id "NISI"
end tell
end repeat
end open
-- JD
---------------------------------------------------
The Nisus Interactive List
[EMAIL PROTECTED]
Searchable archives:
http://www.mail-archive.com/nisus-interactive%40nisus.com/
To unsubscribe from this list please send a message with "unsubscribe
nisus-interactive" in the body of the email to [EMAIL PROTECTED]
