Copying data from livecode to applescript variable
Posted: Sat Sep 07, 2013 4:33 pm
Hello from France
I have a field ( field id 1107 ) containing a string, the path name of a file : "/Users/Moi/My document.txt"
I have a second field containing the native AppleScript (launched with de "do" command), but the first line doesn't works, i can't copy the field to an AppleScript variable
My question is : How can i copy this field in an AppleScript variable ? ( i do this every day with FileMaker, but i don't know how to do this with LiveCode 4.6.4 )
Edit : i have a LiveCode 6.1.0, still not installed : if the 4.6.4 can't do that, maybe the version 6 can ?
I have a field ( field id 1107 ) containing a string, the path name of a file : "/Users/Moi/My document.txt"
I have a second field containing the native AppleScript (launched with de "do" command), but the first line doesn't works, i can't copy the field to an AppleScript variable
My question is : How can i copy this field in an AppleScript variable ? ( i do this every day with FileMaker, but i don't know how to do this with LiveCode 4.6.4 )
Edit : i have a LiveCode 6.1.0, still not installed : if the 4.6.4 can't do that, maybe the version 6 can ?
Code: Select all
set ABFile to (field id 1107 of this card)
set existe to ""
set theFile to ABFile as POSIX file
tell application "Finder" to if exists theFile then set existe to "yes"
if existe = "yes" then
set theFile2 to theFile as alias
tell application "Finder" to set label index of theFile2 to 1
end if