handling file paths in AppleScript droplet

181 Views Asked by At

I created a droplet that is supposed to pass a file (which is being dropped on the droplet) to a website in safari in a file dialog.

I managed most of it... but the file path I get through "theDroppedItems" starts with file:// and it also includes characters like %20 and ~ and more weird characters.

Is there a way to convert this to a "real path" that safari accepts?

1

There are 1 best solutions below

0
On

solved:

set inx to item 1 of theDroppedItem
set iny to POSIX path of inx