Re: Help -> Excel -> OpenText command
Re: Help -> Excel -> OpenText command
- Subject: Re: Help -> Excel -> OpenText command
- From: Shane Stanley <email@hidden>
- Date: Tue, 24 Sep 2002 20:37:22 +1000
On 24/9/02 8:21 PM +1000, Bjorn Van Blanckenberg, email@hidden, wrote:
>
After OpenText you have to specify a the file to open
>
>
OpenText "harddrive:folder:folder:filename" origin xlMacintosh ....
>
>
The problem is that I want to make a droplet and the refence to the file to
>
open is the file that was dropped onto the droplet.
>
>
OpenText dropped_item origin xlMacintosh ....
>
>
In Excel I get an error that I have to check the file if it is moved or
>
check the spelling of the file.
>
>
Is it possible to use a variable in that command or not.
I _think_ what you're after is something like:
on open fileList
set theFile to (item 1 of fileList) as text
OpenText theFile ...
--
Shane Stanley, email@hidden
_______________________________________________
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.