I'm working on an Automator Application where the bit I'm up to has a finder selection window open within the App - Telestream Switch.
My Next steps would be:
1 Ask For Finder Item
2 Copy Path Name
3 Return to Telestream Switch App - cmd shift G and paste path name and enter - So that the file is selected.
4 Refer back to point 1 so that the finder item is selected again.
5 Run the following apple script to copy only the item name.
on run {input, parameters}
set fileName to first item of input
tell application "System Events" to ¬
tell disk item (fileName as text) to ¬
set {theName, theExtension} to ¬
{name, name extension}
if theExtension is not "" then
set theName to ¬
text 1 thru -((count theExtension) + 2) ¬
of theName
set the clipboard to theName
else
set the clipboard to theName
end if
return input
end run
Would this be possible?
Thanks