I have a complex AppleScript that for some reason should run as a single line. My Script looks like this:
tell application "Finder"
tell disk "'myDiskName'"
open
set current view of container window to icon view
set toolbar visible of container window to false
set statusbar visible of container window to false
set the bounds of container window to {400, 100, 968, 421}
close
open
eject
end tell
end tell
I am executing Script using terminal:
echo '<SCRIPT>' | osascript
where the multiline Script is higher - and it works absolutely fine. Now, to be more specific, I want this Script to be run using ant -task, for example:
<exec executable="echo">
<arg line="'<SCRIPT>' | osascript" />
</exec>
, - / , . : , , applescipt, . : Script , - Script " " .