• 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: "koenig.yvan" <email@hidden>
  • Date: Sun, 24 Nov 2013 13:59:40 +0100


Le 24/11/2013 à 13:31, 2551 <email@hidden> a écrit :

While I’m on, here’s another ‘move’ script I have that people might find useful, as you can’t do this natively in OS X:


  1. WHAT'S IT FOR?
  2. I use this script to move things quickly from the desktop.
  3. Create a hotkey for it (I use FastScripts for this, but you can do it via 'Services' menu), then
  4. select file/s you want to move, hit the hotkey and use the Finder tree to pick the destination.
  5.  
  6.  
  7. *)
  8.  
  9. --start
  10. tell application "Finder"
  11.         try
  12.                 get selection
  13.                 if selection is not equal to {} then
  14.                         move selection to (choose folder)
  15.                 else
  16.                         display dialog "Nothing selected to move!" buttons {"OK"} default button "OK" with icon 2
  17.                 end if
  18.         on error
  19.                 set selection to {}
  20.         end try
  21. end tell
  22. --eof

__

I'm not searching a way to move files.
As I'm not completely ignorant, I know that move thru the Finder may be used.
I hate this application so I do my best to work without it.
I know that do shell sript "mv "& quoted form of POSIX path of the_file_which_must_be_moved & space & quoted form of POSIX path of  the_destination_folder
may do the trick and I use it daily.
I know that ASObjC Runner offer an instruction able to move a file.

Here, the problem is : does System Events behaves according to what is stated in its AppleScript dictionary ?
Clearly it doesn’t so the next question is :

is it a bug or is it just a typo in the dictionary ?

Yvan KOENIG (VALLAURIS, France) dimanche 24 novembre 2013 13:59:35



 _______________________________________________
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>)

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