• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: move with System Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: move with System Events


  • Subject: Re: move with System Events
  • From: 2551 <email@hidden>
  • Date: Mon, 25 Nov 2013 16:17:00 +0700


On 25 Nov 2013, at 04:46, Shane Stanley <email@hidden> wrote:

what error exactly is that try block trying to catch, 

A simpler version can get rid of it, you’re right:

tell application "Finder"
get selection
if selection is not equal to {} then


move selection to (choose folder)
else
display dialog "Nothing selected to move!" buttons {"OK"} default button "OK" with icon 2
end if
set selection to {}
end tell

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >move with System Events (From: "koenig.yvan" <email@hidden>)
 >Re: move with System Events (From: Shane Stanley <email@hidden>)
 >Re: move with System Events (From: "koenig.yvan" <email@hidden>)
 >Re: move with System Events (From: 2551 <email@hidden>)
 >Re: move with System Events (From: 2551 <email@hidden>)
 >Re: move with System Events (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Mail - Extract Links
  • Next by Date: file with most recent modification date
  • Previous by thread: Re: move with System Events
  • Next by thread: Mail - Extract Links
  • Index(es):
    • Date
    • Thread