AppleScript da fm14 a fm16
Inviato: martedì 15 gennaio 2019, 12:07
Ciao a tutti,
avevo creato con FM14 degli script che mediante applescript nativi mi creavano determinate cartelle sul mio mac e salvavano all'interno dei files specifici.
Ora sono passato a fm 16 e gli stessi script danno errore "Oggetto non trovato".
Qualcuno sa dirmi cos'è succeso da fm14 a fm16 su questa funzione? Grazie!!!!!
ecco lo script che funzionava con fm14 :
tell application "FileMaker Pro Advanced"
set nome1 to cell "nome" of current record
set nome2 to cell "numeropratica" of current record
set nome3 to cell "numeroservizio" of current record
set mandante to cell "MANDANTE" of current record
set compagnia to cell "azienda" of current record
set tipo to cell "tipo" of current record
set folder_name to nome1 & " " & nome2 & " " & nome3
end tell
tell application "Finder"
activate
set newFolder to (make new folder at folder tipo of folder compagnia of folder mandante of folder "xxxxxx" of folder "xxxxxxx" of folder "Dropbox" of folder "xxxxxx" of folder "Users" of startup disk with properties {name:folder_name})
make new folder at newfolder with properties {name:"DOC. DA INVIARE"}
make new folder at newfolder with properties {name:"CORRISPONDENZA"}
open newfolder
end tell
avevo creato con FM14 degli script che mediante applescript nativi mi creavano determinate cartelle sul mio mac e salvavano all'interno dei files specifici.
Ora sono passato a fm 16 e gli stessi script danno errore "Oggetto non trovato".
Qualcuno sa dirmi cos'è succeso da fm14 a fm16 su questa funzione? Grazie!!!!!
ecco lo script che funzionava con fm14 :
tell application "FileMaker Pro Advanced"
set nome1 to cell "nome" of current record
set nome2 to cell "numeropratica" of current record
set nome3 to cell "numeroservizio" of current record
set mandante to cell "MANDANTE" of current record
set compagnia to cell "azienda" of current record
set tipo to cell "tipo" of current record
set folder_name to nome1 & " " & nome2 & " " & nome3
end tell
tell application "Finder"
activate
set newFolder to (make new folder at folder tipo of folder compagnia of folder mandante of folder "xxxxxx" of folder "xxxxxxx" of folder "Dropbox" of folder "xxxxxx" of folder "Users" of startup disk with properties {name:folder_name})
make new folder at newfolder with properties {name:"DOC. DA INVIARE"}
make new folder at newfolder with properties {name:"CORRISPONDENZA"}
open newfolder
end tell