Unique Files Verification Software (Mac)

2017-03-13 Thread Robert ListMail via 4D_Tech
I need a utility that can scan a backup drive (or index) and identify what’s 
unique to the backup volume without expecting identical pathnames on the other 
drives... So, the routine would have to query (effectively a Finder Search for 
each file) all specified drives looking for each file and reporting those that 
are missing... Basically, I need to know which data on this given backup drive 
is truly unique and therefore potentially valuable.

Might there be a 4D solution?  Have you dealt with large directories or many 
directories from the file system? If there is a utility already built I’m open 
to that as well.

Thanks,

Robert
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: htaccess and .gz

2017-03-13 Thread Keisuke Miyako via 4D_Tech
the web server has a built-in compression feature,

Web HTTP compression level
Web HTTP compression threshold
http://doc.4d.com/4Dv16R2/4D/16-R2.1620/Web-Server.302-3112186.en.html

so normally you shouldn't have to care about gunzipping files yourself.

2017/03/13 21:18、Andrea Angeli via 4D_Tech 
<4d_tech@lists.4d.com> のメール:
Is it possible to do the same thing on 4D Web Server?
Have anyone never used .gz file on 4D Web Server?


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Host Structure in a component

2017-03-13 Thread Keisuke Miyako via 4D_Tech
the code "seems OK..."

doesn't it work inside a different host?
what if you rename the arrays to something different?

local variables are permitted in that context,
but sometimes strange things occur.



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Users & Groups (What is "proper access privileges"?)

2017-03-13 Thread Chip Scheide via 4D_Tech
generically:
Administrator

Designer can access, BUT especially for creating it is not recommended.
When I access (through code) the User/Group system I always change the 
user privs to Administrator.

On Mon, 13 Mar 2017 15:21:01 -0400, Jeremy French via 4D_Tech wrote:
> What is meant by "proper access privileges" in Users and Groups? Is 
> there a definiton somewere?
> 
> 3-commands mention "Designer" and "Administrator", who can execute 
> the command. Those commands are:
>   1)  BLOB TO USERS
>   2)  DELETE Users
>   3)  USERS TO BLOB
> 
> 
> But many other commands do not identify who is a privileged user. In 
> the Error Management section, the documentation simply says these 
> commands return an error when "you do not have the proper access 
> privileges".
> 
> Who has proper access privileges for the following commands?
> ∙ GET GROUP LIST 
> ∙ GET GROUP PROPERTIES
> ∙ GET USER LIST
> ∙ GET USER PROPERTIES
> ∙ Is user deleted
> ∙ Set group properties 
> ∙ Set user properties
> 
> 
> QUESTIONS:
> 1)  What is meant by "proper access privileges"?
> 2)  Which users have "propert access privileges" when the 
> documentation doesn't identify the privileged users?
> 3)  What am I missing here?
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Users & Groups (What is "proper access privileges"?)

2017-03-13 Thread Jeremy French via 4D_Tech
What is meant by "proper access privileges" in Users and Groups? Is there a 
definiton somewere?

3-commands mention "Designer" and "Administrator", who can execute the command. 
Those commands are:
  1)  BLOB TO USERS
  2)  DELETE Users
  3)  USERS TO BLOB


But many other commands do not identify who is a privileged user. In the Error 
Management section, the documentation simply says these commands return an 
error when "you do not have the proper access privileges".

Who has proper access privileges for the following commands?
• GET GROUP LIST 
• GET GROUP PROPERTIES
• GET USER LIST
• GET USER PROPERTIES
• Is user deleted
• Set group properties 
• Set user properties


QUESTIONS:
1)  What is meant by "proper access privileges"?
2)  Which users have "propert access privileges" when the documentation doesn't 
identify the privileged users?
3)  What am I missing here?
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Host Structure in a component

2017-03-13 Thread Timothy Penner via 4D_Tech
Getting an error that the variable does not exist only while in compiled mode?

Maybe the issue is the local variable (variable starting with $)?
http://doc.4d.com/4Dv15/4D/15.3/Import-and-Export.201-3151369.en.html#1040799

-Tim



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Host Structure in a component

2017-03-13 Thread Patrick Emanuel via 4D_Tech
I had no issue with this kind of code from a compiled component.
However, you can write:

ARRAY LONGINT($tableNums;0) 
ARRAY TEXT($tableNames;0) 
Begin SQL 
 SELECT TABLE_ID , TABLE_NAME 
 FROM _USER_TABLES 
 INTO :$tableNums, :$tableNames;
End SQL 



-
Patrick EMANUEL

Administrator
www.association-qualisoft.eu 
(Soft1002, Simply Asso & QS_Toolbox)
--
View this message in context: 
http://4d.1045681.n5.nabble.com/Host-Structure-in-a-component-tp5750741p5750744.html
Sent from the 4D Tech mailing list archive at Nabble.com.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: PHP EXECUTE in a loop

2017-03-13 Thread John Baughman via 4D_Tech
Couldn’t figure out how to call relaunch_4d_php.  Thanks Patrick.

Unfortunately, while it works to eliminate the error, testing it just now it 
took about 10 seconds to execute which makes it unusable in a large loop.

The repeated calls seems to still be the best solution or to not use PHP as 
someone else has suggested.  

John

> On Mar 12, 2017, at 8:56 PM, Patrick Emanuel via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Before call any 'PHP EXECUTE', I used these 2 code lines first:
> 
>   $isOK:=PHP Execute("";"relaunch_4d_php")
>   PHP SET OPTION(2;True;*)
> 
> Since, I have few PHP error like you describe.
> 
> 
> 
> -
> Patrick EMANUEL
> 
> Administrator
> www.association-qualisoft.eu 
> (Soft1002, Simply Asso & QS_Toolbox)
> --
> View this message in context: 
> http://4d.1045681.n5.nabble.com/PHP-EXECUTE-in-a-loop-tp5750722p5750724.html
> Sent from the 4D Tech mailing list archive at Nabble.com.
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: PHP EXECUTE in a loop

2017-03-13 Thread Balinder Walia via 4D_Tech
Call ON ERR CALL and if PHP cgi error just call PHP Exec again...basically
wait for a bit until you stop getting error and try again.

I miss the Try command in 4D :)

On Mon, 13 Mar 2017 at 16:30, Patrick Emanuel via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Before call any 'PHP EXECUTE', I used these 2 code lines first:
>
> $isOK:=PHP Execute("";"relaunch_4d_php")
> PHP SET OPTION(2;True;*)
>
> Since, I have few PHP error like you describe.
>
>
>
> -
> Patrick EMANUEL
> 
> Administrator
> www.association-qualisoft.eu
> (Soft1002, Simply Asso & QS_Toolbox)
> --
> View this message in context:
> http://4d.1045681.n5.nabble.com/PHP-EXECUTE-in-a-loop-tp5750722p5750724.html
> Sent from the 4D Tech mailing list archive at Nabble.com.
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: [ANN]: v2.0 of 4D v14/v15 Code Analysis Component Released

2017-03-13 Thread Dani Beaubien via 4D_Tech
Yep. This is the last version that will have v14 support. I will be releasing a 
v16 version soon.

Dani


> On Mar 11, 2017, at 3:12 AM, Nils Kollandsrud via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Thank you for a fantastic tool! Any plans for a v16 version of the
> component?
> 
> On Wed, Mar 8, 2017 at 5:14 AM, Dani Beaubien via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> I have released v2.0 of the CodeAnalysis component. Please take a look at
>> the release notes below for more detail.
>> 
>> 
> 
> -- 
> Nils Kollandsrud
> Ixmal Intelesis AS, Pilestredet 75 C, Postboks 5130 Majorstuen, 0302 Oslo,
> Norway
> Tel: +47 22121212 Mob: +47 920 15550
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: PHP EXECUTE in a loop

2017-03-13 Thread Patrick Emanuel via 4D_Tech
Before call any 'PHP EXECUTE', I used these 2 code lines first:

$isOK:=PHP Execute("";"relaunch_4d_php")
PHP SET OPTION(2;True;*)

Since, I have few PHP error like you describe.



-
Patrick EMANUEL

Administrator
www.association-qualisoft.eu 
(Soft1002, Simply Asso & QS_Toolbox)
--
View this message in context: 
http://4d.1045681.n5.nabble.com/PHP-EXECUTE-in-a-loop-tp5750722p5750724.html
Sent from the 4D Tech mailing list archive at Nabble.com.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Host Structure in a component

2017-03-13 Thread Nigel Greenlee via 4D_Tech
I know this topic has been covered in General before but there are some things 
I am not sure about and i seem to be having a problem.

I want to get the details of a host structure in a COMPILED component.


ARRAY LONGINT($tableNums;0)
ARRAY TEXT($tableNames;0)
Begin SQL
 SELECT TABLE_ID
 FROM _USER_TABLES
 INTO :$tableNums;

 SELECT TABLE_NAME
 FROM _USER_TABLES
 INTO :$tableNames;
End SQL

I know that code works inside the host database uncompiled and my reading 
suggested this is how i should be getting the structure in the component. 
However i am getting an error(just after this SQL. (error 1430) the variable 
does not exist.

I was wondering if anyone could enlighten me where I am going wrong here.


Thanks.

Nigel Greenlee


 


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Backup files - restoring backup

2017-03-13 Thread Spencer Hinsdale via 4D_Tech
Hi Pat,

Check the size of the log file.  This will give you some indication of how long 
it's been since last backup.  It is possible to have .journal without .4bk.



> On Mar 13, 2017, at 7:50 AM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> A client is getting the message:
> 
> "An error occured during the log file integration, it is recommended to
> restore the last backup of this database in order to attempt the
> integration of this log file""
> 
> I've told them how to restore the backup file manually but they say they do
> not have any files with the .4BK extension. Surely, if they didn't have any
> backup files, this message wouldn't even appear? If the database was
> damaged, they'd just get a "damaged database" error instead, if no backup
> had been set up? Right?
> 
> (They are using 4D v13.6, server).
> 
> I think the .bk files must be there somewhere - they just can't find them.
> 

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Backup files - restoring backup

2017-03-13 Thread Epperlein, Lutz (agendo) via 4D_Tech
> I think the .bk files must be there somewhere - they just can't find them.

Maybe. Or they have only a (very large) journal file ...
Because the backup isn't configured, but the writing the journal file is 
active. 

Regards
Lutz
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Backup files - restoring backup

2017-03-13 Thread Pat Bensky via 4D_Tech
A client is getting the message:

"An error occured during the log file integration, it is recommended to
restore the last backup of this database in order to attempt the
integration of this log file""

I've told them how to restore the backup file manually but they say they do
not have any files with the .4BK extension. Surely, if they didn't have any
backup files, this message wouldn't even appear? If the database was
damaged, they'd just get a "damaged database" error instead, if no backup
had been set up? Right?

(They are using 4D v13.6, server).

I think the .bk files must be there somewhere - they just can't find them.

Pat

-- 
*
CatBase - The Database Publishing Solution
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: List Box Hidden rows array

2017-03-13 Thread Jim Dorrance via 4D_Tech
arrrg... v13 or v15

Thanks for the help

On Mon, Mar 13, 2017 at 2:32 PM, npdennis via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> > On Mar 12, 2017, at 11:14 PM, Jim Dorrance via 4D_Tech <
> 4d_tech@lists.4d.com > wrote:
> >
> > I would to use a dynamic form array as a ListBox hidden rows array. Is
> > there a way I can set this with code.
>
>
> You can with 4D v16 or one of the 4D v15r releases, but not in a 4D 15 dot
> release or before.
>
> So, if you are using 15.4 or earlier you would need to set a process
> variable in the hidden rows and use it.
>
>
> Neil
>
>
> --
> Neil Dennis
> 4D Developer since 1990
>
> GreaText - Designing Software for the Way You Work
> 716 East 1850 N
> North Ogden, UT 84414
>
> mailto:npden...@greatext.com
> http://www.greatext.com/
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: List Box Hidden rows array

2017-03-13 Thread npdennis via 4D_Tech
> On Mar 12, 2017, at 11:14 PM, Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com 
> > wrote:
> 
> I would to use a dynamic form array as a ListBox hidden rows array. Is
> there a way I can set this with code.


You can with 4D v16 or one of the 4D v15r releases, but not in a 4D 15 dot 
release or before.

So, if you are using 15.4 or earlier you would need to set a process variable 
in the hidden rows and use it.


Neil


--
Neil Dennis
4D Developer since 1990

GreaText - Designing Software for the Way You Work
716 East 1850 N
North Ogden, UT 84414

mailto:npden...@greatext.com
http://www.greatext.com/



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

htaccess and .gz

2017-03-13 Thread Andrea Angeli via 4D_Tech
Hallo,

I should try to compress a 3.5Mb .css file on 4D Web Server.
Usually with apache you have .gz file and if you use an htaccess file with the 
specific row the browser load the .gz file instead the normal .min.css file.
Is it possible to do the same thing on 4D Web Server?
Have anyone never used .gz file on 4D Web Server?
Thanks in advance

Andrea
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

htaccess and .gz

2017-03-13 Thread Andrea Angeli via 4D_Tech
Hallo,

I should try to compress a 3.5Mb .css file on 4D Web Server.
Usually with apache you have .gz file and if you use an htaccess file with the 
specific row the browser load the .gz file instead the normal .min.css file.
Is it possible to do the same thing on 4D Web Server?
Have anyone never used .gz file on 4D Web Server?
Thanks in advance

Andrea
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Anyone successfully running Sierra on their development machine

2017-03-13 Thread Sujit Shah via 4D_Tech
That's why you have sticky keys on Windows. Keeps everyone busy..


On Mon, 13 Mar 2017 at 1:59 pm, Robert ListMail via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Kirk, understood, I decided to put the goggles on and go for Sierra and
> will deal with the issues if any. I can still boot from a clone of
> 10.11.6.  Ive not done a clean install in a very long time. It's rather
> interesting to learn exactly where the data resides and how to migrate that
> forward.
>
> So, what about a light oil? Is that too encouraging? :)
>
> R
>
> Sent from my iPhone
>
> > On Mar 12, 2017, at 6:47 PM, Kirk Brooks via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > And don't encourage Tom with respect to any kind of comment involving the
> > word 'lube'. Just don't.
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

-- 

xxx
"There must be ingenuity as well as intention, strategy as well as
strength. "
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: osx open url vs osascript FYI

2017-03-13 Thread Keisuke Miyako via 4D_Tech
for opening documents

plugin
https://github.com/miyako/4d-plugin-shell-execute

component (internally LAUNCH EXTERNAL PROCESS)
https://github.com/miyako/4d-component-sublaunch

in particular, the escaping of paths is quite robust,
not just double-quoting the whole string.

but going back to the original post,
I wonder why OPEN URL could not open "some" files.

perhaps the HTML in question was downloaded,
and GateKeeper or some other mechanism is blocking the operation?

would

xattr -c {drop the file here}

in terminal solve the issue?



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: List Box Hidden rows array

2017-03-13 Thread Jeremy French via 4D_Tech
Hi Jim,

Have you looked at LISTBOX SET ARRAY with the "lk control array" constant?

For the command:
http://doc.4d.com/4Dv16/4D/16/LISTBOX-SET-ARRAY.301-3036404.en.html

For the control array, see section titled "Managing row display":
http://doc.4d.com/4Dv16/4D/16/Managing-List-Box-Objects.300-3036443.en.html

- Jeremy French


> On Mar 12, 2017, at 11:14 PM, Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I would to use a dynamic form array as a ListBox hidden rows array. Is
> there a way I can set this with code.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: osx open url vs osascript FYI

2017-03-13 Thread Nigel Greenlee via 4D_Tech
David

This works for me launching(all sorts of) documents..(OSX there is a another 
bit bit i have for windows)

$_t_DocumentPath:=<—full path to document
If (Test path name($_T_DocumentPath)=Is a document)
$_t_PosixPath:=Convert path system to POSIX($_t_DocumentPath)

$_t_FilePath:=$_t_char+$_t_PosixPath+$_t_Char
$_t_applicationName:=UTIL_GetDocApps ($_t_DocumentType;True)  //do some stuff 
to check what app they want(not entirely necessary  This will only ask once!-so 
could be launching an HTML doc with preferred browser for example

If ($_t_applicationName#"")
  //now we must checkt the applicaiton exist
$_t_ApplicationPath:=System folder(Applications or program files)

If (Not(Test path name($_t_ApplicationPath+$_t_applicationName)=Is a document))
  //i am not faffing about looking for apps installed somewhere else..
LAUNCH EXTERNAL PROCESS("open "+Char(34)+$_t_PosixPath+Char(34))

Else 
LAUNCH EXTERNAL PROCESS("open -a "+Char(34)+$_t_applicationName+Char(34)+" 
"+Char(34)+$_t_FilePath+Char(34))

End if 

Else 
LAUNCH EXTERNAL PROCESS("open "+Char(34)+$_t_PosixPath+Char(34))

End if 




> On 13 Mar 2017, at 07:08, David Ringsmuth via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Bernd,
> 
> Yes, html was what I first tried.
> 
> David Ringsmuth
> 
> From: Bernd Fröhlich via 4D_Tech
> Sent: Saturday, March 11, 2017 4:57 AM
> To: 4d_tech@lists.4d.com
> Cc: Bernd Fröhlich
> Subject: Re: osx open url vs osascript FYI
> 
> David Ringsmuth:
> 
>> I tried many different things to launch a .htm on OSX using OPEN URL, and it 
>> would not automatically open the document.
> 
> 
> Have you tried using ".html" instead of ".htm"?
> What happens if you doubleclick your .htm-document in the finder?
> 
> Greetings from Germany,
> Bernd Fröhlich
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Dynamic PDF Page Extraction...

2017-03-13 Thread Keisuke Miyako via 4D_Tech
1. these are LEP based; probably not performant in a loop...

https://github.com/miyako/4d-component-poppler
https://github.com/miyako/4d-component-pdftk

2. this one is Mac only

https://github.com/miyako/4d-plugin-pdf-kit

3. this one is not very good with Japanese text (returns duplicates)

https://github.com/miyako/4d-plugin-PDF2TEXT

4. I know there are several PHP based solutions too,
but they tend to be totally useless with Japanese text,
so I haven't really used them.



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Dynamic PDF Page Extraction...

2017-03-13 Thread Koen Van Hooreweghe via 4D_Tech
Hi Robert,

Is this on macOS?
If so, you could use OS built in python. There are a few automator scripts 
which handle PDF documents (extract odd/even pages,...) Actually inside they 
are python scripts.
Eg: /System/Library/Automator/Extract odd & Even 
Pages.action/Contents/Resources/extract.py

This script can be copied and modified to extract pages or a page range. And 
then call it from 4D using LAUNCH EXTERNAL PROCESS.

I found this a bit slow if the script is called repeatedly. Because the loading 
of python libraries.

Alternatively you could use the Coherent PDF command line tools (available on 
Win an Mac): http://community.coherentpdf.com
Also called from 4D using LAUNCH EXTERNAL PROCESS.

HTH
Koen


Op 13-mrt.-2017, om 08:11 heeft Robert ListMail via 4D_Tech 
<4d_tech@lists.4d.com> het volgende geschreven:

> I have a need to process (extract) groups of pages (bank statements in this 
> case) from a single PDF with more than 2,500 pages. Apparently they were 
> merged and I need to un-merge. I think all of the statements are: 8, 10 or 12 
> pages in length and they are PDF searchable (some docs apparently scanned by 
> an iX500). This is the dynamic part—varying document lengths to be extracted. 
> They came from Chase bank via subpoena (I assume all of the statements, 99% 
> of the document, are electronic in origin and that no one actually printed 5 
> seems of paper). If they were already grouped together with the same number 
> of pages per report (statement), I could process each group with Adobe 
> Acrobat DC and automatically name the files via an existing Hazel method. So, 
> might there be a way to do this with 4D? Other ideas assuming the original 
> pre-merged files are unavailable?




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
Belgium
tel +32 495 511.653

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Anyone successfully running Sierra on their development machine

2017-03-13 Thread Robert ListMail via 4D_Tech
Hi Kirk, understood, I decided to put the goggles on and go for Sierra and will 
deal with the issues if any. I can still boot from a clone of 10.11.6.  Ive not 
done a clean install in a very long time. It's rather interesting to learn 
exactly where the data resides and how to migrate that forward. 

So, what about a light oil? Is that too encouraging? :)

R

Sent from my iPhone

> On Mar 12, 2017, at 6:47 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> And don't encourage Tom with respect to any kind of comment involving the
> word 'lube'. Just don't.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Dynamic PDF Page Extraction...

2017-03-13 Thread Robert ListMail via 4D_Tech
I have a need to process (extract) groups of pages (bank statements in this 
case) from a single PDF with more than 2,500 pages. Apparently they were merged 
and I need to un-merge. I think all of the statements are: 8, 10 or 12 pages in 
length and they are PDF searchable (some docs apparently scanned by an iX500). 
This is the dynamic part—varying document lengths to be extracted. They came 
from Chase bank via subpoena (I assume all of the statements, 99% of the 
document, are electronic in origin and that no one actually printed 5 seems of 
paper). If they were already grouped together with the same number of pages per 
report (statement), I could process each group with Adobe Acrobat DC and 
automatically name the files via an existing Hazel method. So, might there be a 
way to do this with 4D? Other ideas assuming the original pre-merged files are 
unavailable?

Thanks,

Robert
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: osx open url vs osascript FYI

2017-03-13 Thread David Ringsmuth via 4D_Tech
Bernd,

Yes, html was what I first tried.

David Ringsmuth

From: Bernd Fröhlich via 4D_Tech
Sent: Saturday, March 11, 2017 4:57 AM
To: 4d_tech@lists.4d.com
Cc: Bernd Fröhlich
Subject: Re: osx open url vs osascript FYI

David Ringsmuth:

> I tried many different things to launch a .htm on OSX using OPEN URL, and it 
> would not automatically open the document.


Have you tried using ".html" instead of ".htm"?
What happens if you doubleclick your .htm-document in the finder?

Greetings from Germany,
Bernd Fröhlich
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**