[proFit-list] GetWindowObject?

Dave glasspusher at outofoptions.net
Tue Dec 23 12:26:51 CST 2014


OK, this works for me for now. Sometimes I can answer most of my own questions!

pf.SetWindowProperties(window = pf.GetWindowObject(window = pf.FrontmostWindow(pf.dataType)),  nrCols = 4)
pf.SelectColumn(firstColumn = 3, lastColumn = 3, options = pf.forgetOld)
pf.Copy(window = pf.FrontmostWindow(pf.dataType))
pf.SelectColumn(firstColumn = 4, lastColumn = 4, options = pf.forgetOld)
pf.Paste(window = pf.FrontmostWindow(pf.dataType))
pf.ReduceData(action = pf.smooth, points = 10, selectionOnly = True)
pf.SetColumnProperties(column = 4,name = "smooth j”)


> On Dec 23, 2014, at 10:20 AM, Dave <glasspusher at outofoptions.net> wrote:
> 
> Hmm. This does work…
> 
> pf.SetWindowProperties(window = pf.GetWindowObject(window = pf.FrontmostWindow(pf.dataType)),  nrCols = 4)
> 
> 
>> On Dec 23, 2014, at 10:12 AM, proFit Support <profit at quansoft.com> wrote:
>> 
>> Dear Dave
>> 
>> Try
>> 
>> pf.GetWindowObject(window = pf.FrontmostWindow(pf.dataType))
>> 
>> for getting the frontmost data window. (Note that "dataType" is defined, but only as part of the module pf, so you must prepend "pf.") 
>> 
>> If you see issues with Apple Script, please report them directly to profit at quansoft.com
>> 
>> Best regards
>> 
>> Kurt Sutter
>> QuntumSoft
>> 
>> 
>>> On Dec 23, 2014, at 6:20 PM, Dave <glasspusher at outofoptions.net> wrote:
>>> 
>>> Hi all,
>>> 	I’m playing with some Python scripts in 7.0 B4, is there any way to feed GetWindowObject the frontmost window? The scripts don’t seem to recognize dataType as a window type yet.
>>> 
>>> I’m doing this because Applescript support for B4 doesn’t look to be done yet. Should I just assume this all is still a work in progress and wait?
>>> 
>>> All I’d like to do for the moment is automate, in the front data window, copy one column to a new column and smooth data in that new column
>>> 
>>> Thanks for any and all.
>>> 
>>> Dave
>>> 
>>> 
>>> _______________________________________________
>>> proFit-list mailing list
>>> proFit-list at quantum-soft.com
>>> http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com
>> 
>> 
>> _______________________________________________
>> proFit-list mailing list
>> proFit-list at quantum-soft.com
>> http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com
> 
> 
> _______________________________________________
> proFit-list mailing list
> proFit-list at quantum-soft.com
> http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com




More information about the proFit-list mailing list