dbTalk Databases Forums  

Open URL Scriptstep

comp.databases.filemaker comp.databases.filemaker


Discuss Open URL Scriptstep in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ursus.kirk
 
Posts: n/a

Default Open URL Scriptstep - 06-04-2005 , 10:51 AM






WinXP, FMP7 dev

I get strange effect when using the Open URL script step. One textfield
containing:

file:a.doc and the scriptstep DOES open Word and then the file a.doc
file:a.txt and noting seems to happen
image:a.jpg and nothing seems to happen.

I surely must have overlooked something, but what?

--
Keep Well,
Ursus




Reply With Quote
  #2  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: Open URL Scriptstep - 06-04-2005 , 12:27 PM






It's hard to tell by your example, but if you have any spaces in your
path or file names, then the URL will be broken by that space. You can
perform a calc that replaces any spaces in your path with hex for the
space (%20) and that should work. Or if you were using the Send Message
step (Windows only) to open the file, you would just put quotes around
the entire string.

ursus.kirk wrote:
Quote:
WinXP, FMP7 dev

I get strange effect when using the Open URL script step. One textfield
containing:

file:a.doc and the scriptstep DOES open Word and then the file a.doc
file:a.txt and noting seems to happen
image:a.jpg and nothing seems to happen.

I surely must have overlooked something, but what?

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance


Reply With Quote
  #3  
Old   
ursus.kirk
 
Posts: n/a

Default Re: Open URL Scriptstep - 06-05-2005 , 09:36 AM



Actually there are no spaces in the name. For this I tried the following:

URL<text>

file:01.txt
file:01.doc
file:01.htm
image:01.jpg

None of those seem to open using:
Open url <URL>

All files DO display the correct icon when i connect them to a calcuclation.
cURL <container> [url]

All files are in the same folder as the FMP database file. And it needs to
work cross-platform with XP and osX, so I can't use the Send Message step.


Ursus

"Howard Schlossberg" <howard (AT) antispahm (DOT) fmprosolutions.com> schreef in
bericht news:11a3p37qubjqbc7 (AT) corp (DOT) supernews.com...
Quote:
It's hard to tell by your example, but if you have any spaces in your path
or file names, then the URL will be broken by that space. You can perform
a calc that replaces any spaces in your path with hex for the space (%20)
and that should work. Or if you were using the Send Message step (Windows
only) to open the file, you would just put quotes around the entire
string.

ursus.kirk wrote:
WinXP, FMP7 dev

I get strange effect when using the Open URL script step. One textfield
containing:

file:a.doc and the scriptstep DOES open Word and then the file a.doc
file:a.txt and noting seems to happen
image:a.jpg and nothing seems to happen.

I surely must have overlooked something, but what?


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance



Reply With Quote
  #4  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: Open URL Scriptstep - 06-05-2005 , 01:31 PM



Using the Open URL step works the same way as it does in a browser. In
a browser, I need to start with "file:///c:/" followed by the file
and/or path.

So the URL to a file in my FileMaker program folder would be:
"file:///c:/Program Files/FileMaker/FileMaker Pro 7/01.txt"

Of course, this is for Windows, so you would need to use a case()
statement as your URL calc, using something like:

case(
abs(get(systemplatform)) = 2;
// platform 2 is Windows
"file:///c:/Program Files/FileMaker/FileMaker Pro 7/01.txt";
"file:whatever the correct syntax and path would be on Mac")

Sorry, I don't have any other ideas on this. I haven't done enough
testing with this, particularly not cross-platform. Maybe someone else
will have some ideas.

Howard


ursus.kirk wrote:
Quote:
Actually there are no spaces in the name. For this I tried the following:

URL<text

file:01.txt
file:01.doc
file:01.htm
image:01.jpg

None of those seem to open using:
Open url <URL

All files DO display the correct icon when i connect them to a calcuclation.
cURL <container> [url]

All files are in the same folder as the FMP database file. And it needs to
work cross-platform with XP and osX, so I can't use the Send Message step.


Ursus

"Howard Schlossberg" <howard (AT) antispahm (DOT) fmprosolutions.com> schreef in
bericht news:11a3p37qubjqbc7 (AT) corp (DOT) supernews.com...

It's hard to tell by your example, but if you have any spaces in your path
or file names, then the URL will be broken by that space. You can perform
a calc that replaces any spaces in your path with hex for the space (%20)
and that should work. Or if you were using the Send Message step (Windows
only) to open the file, you would just put quotes around the entire
string.

ursus.kirk wrote:

WinXP, FMP7 dev

I get strange effect when using the Open URL script step. One textfield
containing:

file:a.doc and the scriptstep DOES open Word and then the file a.doc
file:a.txt and noting seems to happen
image:a.jpg and nothing seems to happen.

I surely must have overlooked something, but what?


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance


Reply With Quote
  #5  
Old   
ursus.kirk
 
Posts: n/a

Default Re: Open URL Scriptstep - 06-05-2005 , 02:50 PM



Thanks Howard,

You were quite right. I do have to state full path. Which is quite
counter-intuitive and I too have to figure out how the osX side works.

Ursus

"Howard Schlossberg" <howard (AT) antispahm (DOT) fmprosolutions.com> schreef in
bericht news:11a6h8bnqd01k5e (AT) corp (DOT) supernews.com...
Quote:
Using the Open URL step works the same way as it does in a browser. In a
browser, I need to start with "file:///c:/" followed by the file and/or
path.

So the URL to a file in my FileMaker program folder would be:
"file:///c:/Program Files/FileMaker/FileMaker Pro 7/01.txt"

Of course, this is for Windows, so you would need to use a case()
statement as your URL calc, using something like:

case(
abs(get(systemplatform)) = 2;
// platform 2 is Windows
"file:///c:/Program Files/FileMaker/FileMaker Pro 7/01.txt";
"file:whatever the correct syntax and path would be on Mac")

Sorry, I don't have any other ideas on this. I haven't done enough
testing with this, particularly not cross-platform. Maybe someone else
will have some ideas.

Howard


ursus.kirk wrote:
Actually there are no spaces in the name. For this I tried the following:

URL<text

file:01.txt
file:01.doc
file:01.htm
image:01.jpg

None of those seem to open using:
Open url <URL

All files DO display the correct icon when i connect them to a
calcuclation.
cURL <container> [url]

All files are in the same folder as the FMP database file. And it needs
to work cross-platform with XP and osX, so I can't use the Send Message
step.


Ursus

"Howard Schlossberg" <howard (AT) antispahm (DOT) fmprosolutions.com> schreef in
bericht news:11a3p37qubjqbc7 (AT) corp (DOT) supernews.com...

It's hard to tell by your example, but if you have any spaces in your
path or file names, then the URL will be broken by that space. You can
perform a calc that replaces any spaces in your path with hex for the
space (%20) and that should work. Or if you were using the Send Message
step (Windows only) to open the file, you would just put quotes around
the entire string.

ursus.kirk wrote:

WinXP, FMP7 dev

I get strange effect when using the Open URL script step. One textfield
containing:

file:a.doc and the scriptstep DOES open Word and then the file a.doc
file:a.txt and noting seems to happen
image:a.jpg and nothing seems to happen.

I surely must have overlooked something, but what?


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance




--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.