packing a Service fails
packing a Service fails
- Subject: packing a Service fails
- From: KOENIG Yvan <email@hidden>
- Date: Sat, 19 Jan 2008 21:04:37 +0100
Hello
I wrote two scripts which I want to pack as Services using ThisService.
--[SCRIPT insertDateTime]
on process()
set curDate to (current date) as Unicode text
--return curDate
end process
--[SCRIPT]
--[SCRIPT insertSerialNumber]
(* From the Script Editor, save this script as a Script
Then pack it as a Service using the tool which you may download from:
http://wafflesoftware.net/thisservice/
Apply the setting: Produces output.
The Service will be directly created, installed and activated
Then working with a Services aware application,
select an insertion point then go to
menu theApplication > Services > pasteSerialNumber
will insert the serial number.
*)
on process()
set cd to current date
set serial to (year of cd as text) & text -2 thru -1 of ("0" &
(month of cd as number)) & text -2 thru -1 of ("0" & day of cd) & "_"
& text -2 thru -1 of ("0" & hours of cd) & text -2 thru -1 of ("0" &
minutes of cd) & text -2 thru -1 of ("0" & seconds of cd)
--return serial
end process
--[SCRIPT]
I was able to generate the Services files (both of them defined as
«Produces output » )
Alas, every time I try to use the Pack Up Service feature, the app
quits.
I wonder if I made something wrong or if it is the same on other
machines.
Yvan KOENIG _______________________________________________
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