Tuesday, September 29, 2020

#1 2020-08-05 02:23:03 pm

Registered: 2019-10-23
Posts: 399

WebKit > fileinfo with selection in finder.

Here is other ASOC Script that also use Takaaki WebKit... thanks...

Its works like this...

Select any file in finder and run the Script. Its will open Web View to display information
about that file on the website fileinfo.com... they have 10.000 file format in there database.


use AppleScript version "2.4"
use framework "Foundation"
use scripting additions
use webLib : script "WebKit Utilities"

tell application "Finder" to set itsSelection to (selection as text)
set aString to current application's NSString's stringWithString:itsSelection
set itsSeparatedByString to aString's componentsSeparatedByString:"."
set targetURL to "https://fileinfo.com/extension/" & (item -1 of itsSeparatedByString) as text
display URL targetURL window size {600, 800}

Last edited by Fredrik71 (2020-08-05 02:27:30 pm)

I could teach you to cook but I couldn't do anything if you do not have desire or commitment for it.



Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)