• 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: Simple question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple question


  • Subject: Re: Simple question
  • From: Gnarlodious <email@hidden>
  • Date: Sun, 26 Jan 2003 12:23:21 -0700

Entity GrantSymon spoke thus:

> the command required to have the Finder
> open a file, without having it's exact path written in the script.
It depend on where the item is.
For example:

copy alias ((path to current user folder) & "somefile" as string) to desktop

Means you don't have to specify where the user folder is.

This line leads you to the applications folder regardless of the startup
disk's name:

tell application "Finder" to open folder "Applications" of the startup disk

Each of your partitions has a "Disk number" in their order on the hard
drive, so:

tell application "Finder" to delete alias ((disk 2 as alias) & somepath as
string)

Appends "somepath" to the name of partition number 2, where "Disk 1" is the
outside partition.

There are some example scripts for OSX in a folder called "Navigation
Scripts", they include some good examples for you.

Hope that makes sense . . .

-- Rachel
http://www.Spectrumology.com
AIM Gnarlodious
_______________________________________________
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: 
 >Simple question (From: GrantSymon <email@hidden>)

  • Prev by Date: Re: How do you minimize an app from applescript??
  • Next by Date: Re: How do you minimize an app from applescript??
  • Previous by thread: Re: Simple question
  • Next by thread: Re: Simple question
  • Index(es):
    • Date
    • Thread