![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This seems like an old question, but anyway. This database has some supplemental info in text form that I would like to be able to view at random times, so I added a button that executes a script to open a separate text file. However, the step, Open URL["Macintosh HD: Users: myplace: List.txt"] goes looking for a web site. How can it be told to open the local file instead? (And would the answer to that question be the same if I moved the db to a Windows machine). |
#3
| |||
| |||
|
|
This seems like an old question, but anyway. This database has some supplemental info in text form that I would like to be able to view at random times, so I added a button that executes a script to open a separate text file. However, the step, Open URL["Macintosh HD: Users: myplace: List.txt"] goes looking for a web site. How can it be told to open the local file instead? (And would the answer to that question be the same if I moved the db to a Windows machine). |
)
#4
| |||
| |||
|
|
"r_poetic" <radford.scha... (AT) mms (DOT) gov> wrote in message news:ba17f899-1251-45d1-9621-540887cc604b (AT) y9g2000yqg (DOT) googlegroups.com... This seems like an old question, but anyway. This database has some supplemental info in text form that I would like to be able to view at random times, so I added a button that executes a script to open a separate text file. *However, the step, Open URL["Macintosh HD: Users: myplace: List.txt"] goes looking for a web site. *How can it be told to open the local file instead? *(And would the answer to that question be the same if I moved the db to a Windows machine). I've never had a reason to use the Open URL command with anything other than a real web address, but a URL address does need to have the correct prefix so that the web browser to know what to do with it. e.g. * * *website * * *http:// * * *email * * * * mailto: * * *ftp site * * * ftp:// * * *local file * * file:// * * *etc. When you open a URL address (or type one manually) without a prefix, the web browser automatically assumes that it is a website and adds "http://" to the front. I would need to check on my Mac to see what that does, but opening a local file in Firefox on this ancient Windows PC gives an address like file:///D:/MyFile.txt At the very least you will have to add the prefix, and you may need to do some manipulation of the address / file path depending on whether the database is running on a Mac OS or Windows computer. Helpful Harry * ) |
![]() |
| Thread Tools | |
| Display Modes | |
| |