Hi,
sombody here knows how to import alias files as resources (a folder in my case) to attach at a htm/l-file ?
--DropBox
--journler
(*
tell application "Finder" to set xx to the selection as alias list
tell application "Journler" to drop box xx
*)
tell application "Finder"
set xx to the selection as alias list
--process documents to import
set nm_of to {}
set pt_of to {}
repeat with i in xx
if class of i is not folder then
if kind of i = "HTML" then
copy name of i to end of nm_of
set my_pt to parent of item i
copy (my_pt as text) to end of pt_of
end if
tell application "Journler" to drop box i
end if
end repeat
--add folders, if Html in the selection
repeat with i from 1 to count of items in nm_of
set these_fl to item i of nm_of as text
set right_pt to item i of pt_of as text
set the_lg to (length of these_fl) / 2 as integer
set find_nm to (characters 1 thru the_lg of these_fl)
set find_nm to find_nm as text
if exists (items in alias right_pt whose name begins with find_nm and class is folder) then
set acc_fl to (folders in alias right_pt whose name begins with find_nm) as text
set f to POSIX path of acc_fl
tell application "Journler" to import f --in folder "Anhänge"
end if
end repeat
end tell