• 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: Help duplicating file, desesperated
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help duplicating file, desesperated


  • Subject: Re: Help duplicating file, desesperated
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 5 May 2004 13:15:58 -0700

On May 5, 2004, at 5:14 AM, Bill White wrote:

Try the following:

set chav to (path to me) as string

set AppleScript's text item delimiters to ":"

set vol to text item 1 of chav

This assumes that the file to be duplicated is on the same volume as the Script Editor (or the application that invokes the script). If it is indeed on the same volume as Script Editor, and Script Editor is in its standard location (the Applications folder of the boot volume), this is easier:

tell application "System Events" to set vol to the name of the startup disk

-- Michelle

--
There's no place like 127.0.0.1
There's no place like 127.0.0.1
There's no place like 127.0.0.1
_______________________________________________
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.


References: 
 >Re: Help duplicating file, desesperated (From: Bill White <email@hidden>)

  • Prev by Date: Open files, do Photoshop action
  • Next by Date: How to save some settings
  • Previous by thread: Re: Help duplicating file, desesperated
  • Next by thread: Open files, do Photoshop action
  • Index(es):
    • Date
    • Thread