• 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: Bad script, good script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bad script, good script


  • Subject: Re: Bad script, good script
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 03 Sep 2012 15:08:47 -0500

On Sep 3, 2012, at 2:53 PM, R. Nelson Byrne wrote:

I'm trying to use AppleScript to move a file named "man1" from a folder "source" to a folder "sink". 

When using System Events, you have to use "disk item" in exactly the right place.
I got this to work ...

property sourceAlias : alias "unused:folder_1:Apple Docs.sparsebundle"
property destinationAlias : alias "unused:folder_2"

on run
tell application "System Events"
move disk item (sourceAlias as text) to (destinationAlias as text)
end tell
end run

And you could use the Finder instead of System Events.


 _______________________________________________
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

  • Follow-Ups:
    • Re: Bad script, good script
      • From: Simon Topliss <email@hidden>
References: 
 >Bad script, good script (From: "R. Nelson Byrne" <email@hidden>)

  • Prev by Date: Bad script, good script
  • Next by Date: Re: Bad script, good script
  • Previous by thread: Bad script, good script
  • Next by thread: Re: Bad script, good script
  • Index(es):
    • Date
    • Thread