Re: Displaying 'Get Info'.
Re: Displaying 'Get Info'.
- Subject: Re: Displaying 'Get Info'.
- From: Deivy Petrescu <email@hidden>
- Date: Wed, 2 Jul 2003 09:43:04 -0400
On Wednesday, Jul 2, 2003, at 09:12 US/Eastern, email@hidden
wrote:
Here is the Code:
tell application "Finder"
select folder named "MacOS X Stuff:Documents:MacSOUP II:Incoming News:"
end tell
tell application "System Events"
tell process "Finder"
click menu item "Get Info" of menu "File" of menu bar 1
end tell
end tell
-----
When executed, the Folder 'Incoming News' is selected; but, the 'Get
Info' Window is not displayed.
If I manually click on the Window displaying the 'MacSOUP' Contents,
which then brings 'Finder' [and its related Menu Bar of Menus] to the
foreground, and then click anywhere along the Menu Bar, only then will
the 'Get Info' Window for 'Incoming News' be displayed.
-----
Once placed 'activate' after the 'tell process "Finder"'.
Placed 'click menu bar 1' before 'click menu item "Get Info" of menu
"file" of menu bar 1'.
Even tried 'keystroke "i" with command down' in place of 'click menu
item "Get .... bar 1'.
Even moved the 'end tell' of 'tell application "Finder"' after the end
of the Code.
Nothing worked.
-----
Any suggestion(s) would be appreciated.
Thank you.
--
Samuel
I experienced the same problem originally. Changing the script to:
<script>
tell application "Finder"
activate
select folder named "SantosFC:Users:deivy:Desktop:"
end tell
tell application "System Events"
tell process "Finder"
click menu item "Get Info" of menu "File" of menu bar 1
end tell
end tell
</script>
will work. Finder has to be the frontmost application on the outset.
Regards
Deivy Petrescu
http://www.dicas.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.