Saturday, October 31, 2020

#51 2017-01-08 02:19:27 pm

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11698
Website

Re: SKProgressBar 1.0, a fully scriptable progress bar

Oops, my bad.

Indeed the line to set the frame origin was missing.

It's fixed in SKProgressBar 1.6.1


regards

Stefan

Offline

 

#52 2017-01-09 12:17:41 am

jean.o.matic
Member
From:: Montréal, Québec, Canada
Registered: 2009-10-05
Posts: 13

Re: SKProgressBar 1.0, a fully scriptable progress bar

Thanks Stefan for super fast reply and reaction!
Sorry to say, version 1.6.1 does not run on El Capitan [Une erreur de type -10810 est survenue.].
An error of type -10810 has happened.
Same with demo script bundled with version 1.6 dmg.
Reverting to 1.6 for now, and works as expected, except for minor flaw.

Jean.O.matiC


______________________
Jean.O.matiC
Montréal, Québec, Canada

Offline

 

#53 2017-01-09 01:58:43 am

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11698
Website

Re: SKProgressBar 1.0, a fully scriptable progress bar

Try to resolve the 10810 error with the suggestions in this article:

http://www.thexlab.com/faqs/error-10810.html


regards

Stefan

Offline

 

#54 2017-01-09 08:25:24 am

jean.o.matic
Member
From:: Montréal, Québec, Canada
Registered: 2009-10-05
Posts: 13

Re: SKProgressBar 1.0, a fully scriptable progress bar

Stefan,
Thanks for the link, it was a long time since I browsed that site. Restarted Mac and did some testing. No Applications running but Script Editor, Finder, Quicktime (for video capture). Video was captured w/o sound to show script working with version 1.6, not working with 1.6.1 then working again with 1.6.
Simply said version 1.6.1 can't launch on my Mac.
Mac OS X ElCapitan 10.11.6 [Build 15G1212]
https://youtu.be/zGQctJemb2o

Jean.O.matiC

Model: MacBook Pro 15 in. Late 2008
AppleScript: 2.5

Last edited by jean.o.matic (2017-01-09 08:26:44 am)


______________________
Jean.O.matiC
Montréal, Québec, Canada

Offline

 

#55 2017-01-09 10:47:05 am

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11698
Website

Re: SKProgressBar 1.0, a fully scriptable progress bar

It might be that I used the wrong option to sign the application.

I created a new build (40), re-checked the deployment target, archived the app using the correct option and made an disk image like the other versions.

It's available at the same link.


regards

Stefan

Offline

 

#56 2017-01-09 12:06:41 pm

jean.o.matic
Member
From:: Montréal, Québec, Canada
Registered: 2009-10-05
Posts: 13

Re: SKProgressBar 1.0, a fully scriptable progress bar

Stefan, I must say I am very impressed!
Everything is OK now.
I can now save position of progress bar so it re-appears as it was placed on last run of script.

Thank you very, very much!

Best wishes for 2017,
Jean.O.matiC

Last edited by jean.o.matic (2017-01-15 01:34:20 pm)


______________________
Jean.O.matiC
Montréal, Québec, Canada

Offline

 

#57 2017-01-11 04:06:14 pm

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11698
Website

Re: SKProgressBar 1.0, a fully scriptable progress bar

[ANN] SKProgressBar 1.6.2

Changes :

- Got rid of the last Carbon relict, the AppleScript point type which was mapped to old QuickDraw Point.
In Swift this required a ObjC bridge header because Carbon Point is not available in Swift.
Version 1.6.2 maps the point in the position property to NSValue.

- Some minor optimizations.

Download: SKProgressBar 1.6.2

Last edited by StefanK (2017-01-17 01:48:47 am)


regards

Stefan

Offline

 

#58 2017-01-16 07:55:50 pm

jean.o.matic
Member
From:: Montréal, Québec, Canada
Registered: 2009-10-05
Posts: 13

Re: SKProgressBar 1.0, a fully scriptable progress bar

Hi Stefan!

The link to the latest version is broken.

http://www.klieme.com/Downloads/SKProgr … r1.6.2.zip
gives error 404.
Would be nice to have another link on the main page of your site [http://www.klieme.com].

Jean.O.matiC


______________________
Jean.O.matiC
Montréal, Québec, Canada

Offline

 

#59 2017-01-17 01:50:08 am

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11698
Website

Re: SKProgressBar 1.0, a fully scriptable progress bar

I edited the post and fixed the link.


regards

Stefan

Offline

 

#60 2019-10-04 05:09:16 am

alitaliano
Member
Registered: 2010-10-12
Posts: 34
Website

Re: SKProgressBar 1.0, a fully scriptable progress bar

Hi all,
Is it possible to use SKProgressBar together with a shell script that uploads ONE file and see the uploading progress for this file ?

Applescript:


set shellscript to "curl -u " & ftp_name & ":" & ftp_pw & " -T " & thisPOSIXfile & " " & fileURL
do shell script shellscript

Thanks for your answers !

Offline

 

#61 2019-10-05 02:51:10 am

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11698
Website

Re: SKProgressBar 1.0, a fully scriptable progress bar

No, it's not possible. You need a loop to increment the counter


regards

Stefan

Offline

 

#62 2019-10-06 01:07:41 pm

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11698
Website

Re: SKProgressBar 1.0, a fully scriptable progress bar

[Ann] Version 1.8, updated to Swift 5 with Catalina and Dark Mode support.

SKProgressBar is code signed and notarized.

Link: SKProgressBar1.8


regards

Stefan

Offline

 

#63 2019-12-03 09:01:27 am

BabyG
Member
Registered: 2019-11-25
Posts: 11

Re: SKProgressBar 1.0, a fully scriptable progress bar

SKProgressBar is a godsend! I had been using ProgBar as my progress bar, but it is no longer functional under Catalina. After some searching for a substitute, I came upon SKPB, and my prayers were answered!

I especially love the ability to include images in the bar. I have a question regarding that - is there any way to make the image field larger? App icons show up great in the bar, but images from JPEGs et al are often too tiny to be recognizable.

Thanks for providing this!

Offline

 

#64 2020-02-28 04:17:27 pm

JMichaelTX
Member
From:: Houston, TX (The Woodlands)
Registered: 2014-07-12
Posts: 141

Re: SKProgressBar 1.0, a fully scriptable progress bar

StefanK wrote:

[Ann] Version 1.8, updated to Swift 5 with Catalina and Dark Mode support.

SKProgressBar is code signed and notarized.

Link: SKProgressBar1.8



Thanks for the update, but it won't run for me, running Script Debugger 7.0.11 (7A106) on macOS 10.14.6 (Mojave).

I get this error running your demo SKProgressbarDemo.scpt:

SKProgressBar got an error: Can’t set «class hDsZ» of main bar to «constant hfSZrgSZ».
«class hDsZ» of main bar



on this line:

Applescript:


set «class hDsZ» to «constant hfSZrgSZ» --> default is small

How do I fix it?

Just for reference, here is the entire script:

Applescript:


property currentValue : 0.0
property maxValue : 10.0

set iconPath to (path to applications folder as text) & "iTunes.app:Contents:Resources:iTunes.icns"

tell application "SKProgressBar"
   activate
   
   ---------------------------------------------------
   --    SETUP WINDOW THAT CONTAINS ALL PROGRESS BARS --
   ---------------------------------------------------
   set title to "Demo of SKProgressBar 1.6" --> default is "SKProgressBar"
   
   set floating to false --> default is true
   set position to {100, 100} --> default is {1000, 750}, origin point is bottom left
   set width to 400.0 --> default is 500.0
   
   ---------------------------------------------------
   --    SETUP MAIN PROGRESS BAR --
   -- (progress bar 1 by definition)
   ---------------------------------------------------
   --    It already exists, so no need to create
   
   tell main bar --main bar
       
       set minimum value to 0.0 --> default is 0.0
       set maximum value to maxValue --> default is 100.0
       set current value to currentValue --> default is 0.0
       
       -- header / footer properties
       set header to "MAIN Progress Bar" --> default is empty string
       set header alignment to center --> default is left
       set «class hDsZ» to «constant hfSZrgSZ» --> default is small
       set footer to "footer" --> default is empty string
       set footer alignment to center --> default is left
       set «class fTsZ» to «constant hfSZmiSZ» --> default is small
       
       -- image path can be HFS or POSIX path, default is missing value (no image)
       set image path to iconPath
       
   end tell
   
   ---------------------------------------------------
   --    CREATE & SETUP PROGRESS BAR #2 --
   ---------------------------------------------------
   
   set progressBar2 to make new progress bar at after progress bar 1 with properties {header:"TEST Progress Bar #2", header alignment:center}
   tell progressBar2
       set maximum value to maxValue
       set current value to currentValue
   end tell
   
   
   ---------------------------------------------------
   --    DISPLAY/ACTIVATE THE PROGRESS BARS --
   ---------------------------------------------------
   --    This will show one window will all progress bars
   
   set show window to true --> default is false
   
   tell main bar
       set indeterminate to false
       start animation
   end tell
   
   repeat 10 times
       my resetMainBar()
       tell progressBar2
           if current value is 1.0 then
               set indeterminate to false
               start animation
           end if
       end tell
       repeat 10 times
           tell main bar to increment by 1
           delay 1
       end repeat
       tell progressBar2 to increment by 1
   end repeat
   tell main bar to stop animation
   tell progressBar2 to stop animation
   
   quit -- This quits the SKProgressBar app, closing all Progress Bars
   
end tell

on resetMainBar()
   tell application "SKProgressBar"
       tell main bar
           set maximum value to maxValue
           set current value to currentValue
       end tell
   end tell
end resetMainBar

Model: 2019 iMac-27
Browser: Safari 537.36
Operating System: macOS 10.14


2019 iMac-27 512GB SSD, 3.6Ghz i9 CPU, 40GB RAM
macOS 10.14.6 (Mojave)

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)