dbTalk Databases Forums  

simple html page

comp.databases.filemaker comp.databases.filemaker


Discuss simple html page in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Jens Teich
 
Posts: n/a

Default Re: simple html page - 08-09-2010 , 03:44 PM






105 <cortical (AT) internode (DOT) on.net> writes:

Quote:
On 9/08/10 12:51 AM, Jens Teich wrote:
105<cortical (AT) internode (DOT) on.net> writes:

On 7/08/10 3:52 PM, Jens Teich wrote:
105<cortical (AT) internode (DOT) on.net> writes:

On 7/08/10 12:48 AM, Jens Teich wrote:
"do shell script \"echo \\\""&
Substitute( table::field;"¶";Char(10))&
"\\\"> /Users/<your username>/Desktop/out.txt\""



"do shell script \"echo \\\""&
Substitute( fUser::g_text;"¶";Char(10))&
"\\\"> /Volumes/Data/cortical/Desktop/out.txt\""

A real number can’t go after this “"”.

Unknown error -2740



changing to:
/Volumes/data/cortical/Desktop/out.txt
same error

Your path /Volumes/... looks invalid. Open Terminal.app

cd Desktop
pwd

and take result as path.

Jens


user(s) are on a separate partition 'data'


imac27:desktop cortical$ pwd
/Volumes/data/cortical/desktop
imac27:desktop cortical$

Shell is case sensitive.

Data -> data
Desktop -> desktop

Jens




1. file dragged onto shell
/Volumes/data/cortical/Desktop/aa.html

2. cd desktop
pwd
/Volumes/data/cortical/desktop

(I'll have to remember there are case issues;
file dragged into shell = upper
pwd - lower
but cd accepts lower; imac27:~ cortical$ cd desktop
imac27:desktop)



SCRIPT STEP:
"do shell script \"echo \\\""&
Substitute( fUser::g_text;"¶";Char(10))&
"\\\" > /Volumes/data/cortical/desktop/out.txt\""

error
A real number can’t go after this “"”.
Unknown Error: -2740.

Maybe you have a problem with characters which look like
double quotes but aren't.
There is an option within 'use ... quotes' (I don't
know the wording in English)
which should not be checked.

Jens

Reply With Quote
  #12  
Old   
Jens Teich
 
Posts: n/a

Default Re: simple html page - 08-09-2010 , 03:52 PM






Jens Teich <info (AT) jensteich (DOT) de> writes:

Quote:
Maybe you have a problem with characters which look like
double quotes but aren't.
There is an option within 'use ... quotes' (I don't
curly quotes

Quote:
know the wording in English)
which should not be checked.

Jens

Reply With Quote
  #13  
Old   
Your Name
 
Posts: n/a

Default Re: simple html page - 08-09-2010 , 04:26 PM



"Jens Teich" <info (AT) jensteich (DOT) de> wrote

Quote:
Jens Teich <info (AT) jensteich (DOT) de> writes:

Maybe you have a problem with characters which look like
double quotes but aren't.
There is an option within 'use ... quotes' (I don't

curly quotes

know the wording in English)
which should not be checked.
"Curly quotes" is the commonly used name. More correctly they're called
"typographer's quote marks".


But those nor replacing the carriage return / paragraph marks is the problem
that the original person is having. There's something a little peculiar
going on to get all those extra HTML codes inserted via a simple Text file
export ... it's almost as if the Field displaying / formatting the data as a
webpage rather than normal Text, but I don't know enough about newer
versions of FileMaker to even guess at why or how.

Helpfull Harry )

Reply With Quote
  #14  
Old   
Jens Teich
 
Posts: n/a

Default Re: simple html page - 08-10-2010 , 04:33 AM



Now I could see the error. It is produced by double quotes inside
your HTML data. Is it possible for you to use single quotes instead?

Jens

Reply With Quote
  #15  
Old   
Jens Teich
 
Posts: n/a

Default Re: simple html page - 08-10-2010 , 04:49 AM



"do shell script \"echo \\\""&
Substitute( table::field;["¶";Char(10)];["\"";"\\\\\\\""])&
"\\\" > /path/out.txt\""

does the trick.


Jens

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.