Get dataset info into variables of applescript
Posted: Thu Oct 03, 2013 2:14 pm
Hello,
I have a script that I want to use in switch.
When I start a submit point, I will give two variables.
How do I get the two variables from a dataset into my applescript.
Script.
tell application "Safari"
open location "http://62.206.22.39/Homann/getpdf.php?jobid=000" & jobNr & "&fn=9-Datenversand%5C" & matNr & ".zip"
end tell
tell application "Finder"
repeat
set folderName to get name of folders of folder ("/Users/DavidVV/Downloads/" as POSIX file)
if folderName contains matNr then exit repeat
end repeat
move folder ("Macintosh HD:Users:DavidVV:Downloads:" & matNr & "") to folder ("Macintosh HD:Volumes:Data-VAO:6. Home folders:DavidV:DavidV:03_Switch:Test folders:Homann:Incoming") with replacing
delete folder ("Macintosh HD:Users:DavidVV:Downloads:" & matNr & "")
end tell
Greetz.
I have a script that I want to use in switch.
When I start a submit point, I will give two variables.
How do I get the two variables from a dataset into my applescript.
Script.
tell application "Safari"
open location "http://62.206.22.39/Homann/getpdf.php?jobid=000" & jobNr & "&fn=9-Datenversand%5C" & matNr & ".zip"
end tell
tell application "Finder"
repeat
set folderName to get name of folders of folder ("/Users/DavidVV/Downloads/" as POSIX file)
if folderName contains matNr then exit repeat
end repeat
move folder ("Macintosh HD:Users:DavidVV:Downloads:" & matNr & "") to folder ("Macintosh HD:Volumes:Data-VAO:6. Home folders:DavidV:DavidV:03_Switch:Test folders:Homann:Incoming") with replacing
delete folder ("Macintosh HD:Users:DavidVV:Downloads:" & matNr & "")
end tell
Greetz.