Hi,
I am using “System Event” for opening action script 3 file in flash cs 4 using menu bar 1 and menu name “File” etc.
I am facing problem while saving the file to a particular with with a name.
Is any one help me out?
Regards,
Poo
Hi,
I am using “System Event” for opening action script 3 file in flash cs 4 using menu bar 1 and menu name “File” etc.
I am facing problem while saving the file to a particular with with a name.
Is any one help me out?
Regards,
Poo
Dear All,
Please see the below code for saving file.
set SavePath to "Macintosh:TO_Cache:FlashCS4:Testing:Testing.fla" as string
tell application "Adobe Flash CS4"
activate
save document 1 in SavePath
end tell
tell application "System Events"
tell process "Adobe Flash CS4"
tell menu bar 1
tell menu bar item "File"
tell menu "File"
click menu item "Save"
tell tab group "Save As:" of window "" to SavePath
keystroke return
end tell
end tell
end tell
end tell
end tell
I am not able to save the file at the location of SavePath. When I saving with
keystroke “Macintosh:TO_Cache:FlashCS4:Testing:Testing.fla” then it is taking the complete path as file name and saving to the default location.
Hope someone can help me out.
Regards,
Poo
Use the below code for entering the path.
set SavePath to "/Mac OS/SO_Cache/Test/Testing.fla"
tell application "Adobe Flash CS4"
activate
end tell
tell application "System Events"
tell process "Adobe Flash CS4"
tell menu bar 1
tell menu bar item "File"
tell menu "File"
click menu item "Save"
keystroke SavePath
end tell
end tell
end tell
end tell
end tell
Regards,
Rajeev
Hi,
Some time this code is working but most of the time it is not working.
It is showing folder doesn’t exists but in fact folder is there.
Regards,
Poo