Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server
Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server
- Subject: Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server
- From: Deivy Petrescu <email@hidden>
- Date: Thu, 11 Feb 2016 09:33:53 -0500
> On Feb 10, 2016, at 15:32 , Bill Cheeseman <email@hidden> wrote:
>
> It listed 26 files in my Applications folder, but I think you're right that it's failing to examine top-level application files. I'll check it out, but I won't be able to post any correction until tomorrow. I'm also working on a version using System Events now.
>
>> On Feb 10, 2016, at 2:47 PM, Stockly, Ed <email@hidden> wrote:
>>
>> This didn't work here. The alias list only contained one file. I'm thinking the command only finds applications in folders that are inside the applications folder and misses those apps that are in the top level of the applications folder.
>
> --
>
> Bill Cheeseman - email@hidden
>
Once I saw the flurry of emails about this, I run the scripts and just got one application.
Then I saw Yvan’s email where he listed apps that he found, since I had the same apps, I decided the scripts were not doing its job.
I saw Bill Cheeseman’s email using the Finder and that also did not work, so I wrote one that used System Events and that seems to have caught all my apps.
Here is the script:
<script>
script a
property b : {}
end script
set report to {}
tell application "System Events"
set a's b to every item of folder "Applications" of startup disk whose file type is "APPL"
repeat with thisapp in a's b
try
set Frame to folder "Frameworks" of folder "Contents" of thisapp
if exists item "Sparkle.framework" of Frame then set end of report to (thisapp's name)
end try
end repeat
set a's b to every folder of folder "Applications" of startup disk
repeat with thisfld in a's b
set theseapps to (every item of thisfld whose file type is "APPL")
repeat with thisapp in theseapps
try
set Frame to folder "Frameworks" of folder "Contents" of thisapp
if exists item "Sparkle.framework" of Frame then set end of report to (thisapp's name)
end try
end repeat
end repeat
end tell
report
</script>
Deivy Petrescu
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden